express-template/Dockerfile

18 lines
260 B
Docker

FROM node:lts-stretch
WORKDIR /src
COPY . .
RUN cp example.env .env && \
rm package-lock.json && \
rm yarn.lock && \
npm install && \
npm install pm2 typescript -g && \
node ./build
VOLUME ["/src"]
EXPOSE 80-60000
CMD ["./pm2.sh"]