From 7e7871cc283afa04dda2c0c1d773e328c156433e Mon Sep 17 00:00:00 2001 From: Tanguy Herbron Date: Sun, 9 May 2021 00:52:52 +0200 Subject: [PATCH] Add deployment containers --- .env.sample | 2 ++ Dockerfile | 5 +++++ docker-compose.yml | 11 +++++++++++ 3 files changed, 18 insertions(+) create mode 100644 .env.sample create mode 100644 Dockerfile create mode 100644 docker-compose.yml 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