Add Docker

This commit is contained in:
Mylloon 2022-06-23 20:58:56 +02:00
parent 79e5331c3c
commit 8fc8173f69
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
3 changed files with 30 additions and 1 deletions

5
.dockerignore Normal file
View file

@ -0,0 +1,5 @@
node_modules/
docker-compose.yml
.eslintrc.json
README.md

13
Dockerfile Normal file
View file

@ -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" ]

View file

@ -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
```