From 45c8e84f5b40a68544b7281fad4ad887b0bd4157 Mon Sep 17 00:00:00 2001 From: Flug Date: Sun, 2 Jan 2022 15:04:45 +0100 Subject: [PATCH] add dockerfile for build project and use with docker it would be necessary to add in the Readme.md the different files : - dnsToProfile.json - userList.json --- Dockerfile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..0799f28 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,17 @@ +FROM node:16-alpine + +WORKDIR /app + +COPY . /app + +RUN apk add --no-cache git + +RUN set -eux; \ + npm install ; \ + npm i -g pm2 ; \ + npm run server/build ;\ + npm run front/build + +EXPOSE 3012 + +CMD ["pm2-runtime", "start", "bootstrap-pm2.json"]