diff --git a/.gitignore b/.gitignore index f4fbf2b..1d15b4e 100644 --- a/.gitignore +++ b/.gitignore @@ -139,4 +139,5 @@ dist *.code-workspace config.json -state.json \ No newline at end of file +state.json +docker-compose.yml \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..bbc6163 --- /dev/null +++ b/Dockerfile @@ -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"] \ No newline at end of file diff --git a/docker-compose.yml.default b/docker-compose.yml.default new file mode 100644 index 0000000..0a5edd5 --- /dev/null +++ b/docker-compose.yml.default @@ -0,0 +1,6 @@ +services: + bot: + restart: unless-stopped + build: . + volumes: + - ./config.json:/usr/src/bot/config.json \ No newline at end of file