From 8fc8173f6930c67d74f7f2d1a8f87ad249ddd43d Mon Sep 17 00:00:00 2001 From: Mylloon Date: Thu, 23 Jun 2022 20:58:56 +0200 Subject: [PATCH] Add Docker --- .dockerignore | 5 +++++ Dockerfile | 13 +++++++++++++ README.md | 13 ++++++++++++- 3 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 .dockerignore create mode 100644 Dockerfile diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..5f2febe --- /dev/null +++ b/.dockerignore @@ -0,0 +1,5 @@ +node_modules/ + +docker-compose.yml +.eslintrc.json +README.md diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..c5d643f --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +# syntax=docker/dockerfile:1 + +FROM node:16.15.0-alpine3.15 + +WORKDIR /app + +COPY . . + +RUN npm install --production + +EXPOSE 3000 + +CMD [ "node", "src/server.js" ] diff --git a/README.md b/README.md index 6d6ac11..3101e34 100644 --- a/README.md +++ b/README.md @@ -12,4 +12,15 @@ There is a [FAQ here](./FAQ.md) if you want to know more about the project. Clone the repo and run `npm run main`. ### Docker -[Coming Soon™](#) +> Docker-compose +```docker-compose +version: "3" + +services: + constnium: + build: https://git.kennel.ml/Anri/Constnium.git#main + container_name: Constnium + ports: + - 3000:3000 + restart: unless-stopped +```