Add Docker
This commit is contained in:
parent
79e5331c3c
commit
8fc8173f69
3 changed files with 30 additions and 1 deletions
5
.dockerignore
Normal file
5
.dockerignore
Normal file
|
@ -0,0 +1,5 @@
|
|||
node_modules/
|
||||
|
||||
docker-compose.yml
|
||||
.eslintrc.json
|
||||
README.md
|
13
Dockerfile
Normal file
13
Dockerfile
Normal 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" ]
|
13
README.md
13
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
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue