make docker
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -140,3 +140,4 @@ dist
|
|||||||
|
|
||||||
config.json
|
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