Add Docker setup

This commit is contained in:
ABeltramo 2021-03-01 20:12:11 +00:00 committed by Cadence Ember
parent ac3de4b4e6
commit 1b580ae0b6
No known key found for this signature in database
GPG Key ID: BC1C2C61CF521B17
3 changed files with 31 additions and 0 deletions

16
.dockerignore Normal file
View File

@ -0,0 +1,16 @@
# Editor crud files
*~
\#*#
.#*
.vscode
.idea
.git
# Auto-generated files
node_modules
# User configuration
/db
/config/config.js
Dockerfile

1
.gitignore vendored
View File

@ -3,6 +3,7 @@
\#*#
.#*
.vscode
.idea
# Auto-generated files
node_modules

14
Dockerfile Normal file
View File

@ -0,0 +1,14 @@
FROM node:14-buster
WORKDIR /workdir
COPY package.json ./package.json
COPY package-lock.json ./package-lock.json
RUN npm install
COPY . .
EXPOSE 10412
CMD npm start