Skip to content

Commit 139ea9b

Browse files
committed
Added support for Docker
1 parent 80100c3 commit 139ea9b

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

Dockerfile

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
FROM node:latest
2+
3+
RUN mkdir -p /app/Byte
4+
5+
WORKDIR /app/Byte
6+
7+
COPY . .
8+
9+
# Clear old node_modules if it exists and re-install dependencies
10+
RUN rm -rf node_modules
11+
RUN npm install
12+
13+
# Start the bot
14+
CMD ["npm", "start"]

docker-compose.yml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: "3.9"
2+
3+
services:
4+
web:
5+
build: .
6+
ports:
7+
- "80:80"

0 commit comments

Comments
 (0)