make docker

This commit is contained in:
2025-11-08 06:37:05 -05:00
parent 3b86c5b9c7
commit bfd90f03bb
3 changed files with 14 additions and 1 deletions

3
.gitignore vendored
View File

@@ -139,4 +139,5 @@ dist
*.code-workspace *.code-workspace
config.json config.json
state.json state.json
docker-compose.yml

6
Dockerfile Normal file
View File

@@ -0,0 +1,6 @@
FROM node:latest
RUN mkdir -p /usr/scr/bot
WORKDIR /usr/src/bot
COPY . /usr/src/bot
RUN npm install
CMD ["node", "index.js"]

View File

@@ -0,0 +1,6 @@
services:
bot:
restart: unless-stopped
build: .
volumes:
- ./config.json:/usr/src/bot/config.json