From 1b580ae0b69a5aaab06572dbda9f464547a9aaa9 Mon Sep 17 00:00:00 2001 From: ABeltramo Date: Mon, 1 Mar 2021 20:12:11 +0000 Subject: [PATCH] Add Docker setup --- .dockerignore | 16 ++++++++++++++++ .gitignore | 1 + Dockerfile | 14 ++++++++++++++ 3 files changed, 31 insertions(+) create mode 100644 .dockerignore create mode 100644 Dockerfile diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..0214111 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,16 @@ +# Editor crud files +*~ +\#*# +.#* +.vscode +.idea +.git + +# Auto-generated files +node_modules + +# User configuration +/db +/config/config.js + +Dockerfile diff --git a/.gitignore b/.gitignore index f511669..73ce401 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ \#*# .#* .vscode +.idea # Auto-generated files node_modules diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..cb80a03 --- /dev/null +++ b/Dockerfile @@ -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