diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..744be6c --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +FROM alpine/git:latest +MAINTAINER mathieumoran1@gmail.com +RUN apk fix +RUN apk add --update nodejs npm +RUN npm install pm2 -g +RUN git clone https://github.com/chriscarreau/resistance-online.git +WORKDIR resistance-online +RUN npm install +RUN npm run build +EXPOSE 8080 +ENTRYPOINT ["pm2-runtime","./dist/app/index.js"]