Add deployment containers

This commit is contained in:
Tanguy Herbron 2021-05-09 00:52:52 +02:00
parent bcfa5177de
commit 7e7871cc28
3 changed files with 18 additions and 0 deletions

2
.env.sample Normal file
View File

@ -0,0 +1,2 @@
DISCORD_TOKEN=your-token-here
MODULES_DIR=/modules

5
Dockerfile Normal file
View File

@ -0,0 +1,5 @@
FROM node:14-alpine3.10
WORKDIR /app
COPY package.json .
RUN npm install --quiet
COPY . .

11
docker-compose.yml Normal file
View File

@ -0,0 +1,11 @@
version: "3.2"
services:
bot:
build: .
command: npm run dev
volumes:
- .:/app
- /app/node_modules
- /app/modules
- ./modules:/modules