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