make docker
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -139,4 +139,5 @@ dist
|
||||
*.code-workspace
|
||||
|
||||
config.json
|
||||
state.json
|
||||
state.json
|
||||
docker-compose.yml
|
||||
6
Dockerfile
Normal file
6
Dockerfile
Normal 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"]
|
||||
6
docker-compose.yml.default
Normal file
6
docker-compose.yml.default
Normal file
@@ -0,0 +1,6 @@
|
||||
services:
|
||||
bot:
|
||||
restart: unless-stopped
|
||||
build: .
|
||||
volumes:
|
||||
- ./config.json:/usr/src/bot/config.json
|
||||
Reference in New Issue
Block a user