diff --git a/.env.sample b/.env.sample new file mode 100644 index 0000000..71e274f --- /dev/null +++ b/.env.sample @@ -0,0 +1,2 @@ +DISCORD_TOKEN=your-token-here +MODULES_DIR=/modules diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..1bbdd4e --- /dev/null +++ b/Dockerfile @@ -0,0 +1,5 @@ +FROM node:14-alpine3.10 +WORKDIR /app +COPY package.json . +RUN npm install --quiet +COPY . . diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..fb48d13 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,11 @@ +version: "3.2" + +services: + bot: + build: . + command: npm run dev + volumes: + - .:/app + - /app/node_modules + - /app/modules + - ./modules:/modules