express-template/Dockerfile

18 lines
260 B
Docker
Raw Normal View History

2021-08-16 15:47:37 +00:00
FROM node:lts-stretch
WORKDIR /src
COPY . .
2021-08-29 10:31:21 +00:00
RUN cp example.env .env && \
rm package-lock.json && \
rm yarn.lock && \
npm install && \
npm install pm2 typescript -g && \
node ./build
VOLUME ["/src"]
2021-08-16 15:47:37 +00:00
EXPOSE 80-60000
CMD ["./pm2.sh"]