express-template/Dockerfile

16 lines
214 B
Docker
Raw Normal View History

2021-08-16 15:47:37 +00:00
FROM node:lts-stretch
WORKDIR /src
COPY . .
RUN cp ormconfig.example.json ormconfig.json && \
cp example.env .env && \
yarn && \
npm install pm2 -g
EXPOSE 80-60000
VOLUME ['/src']
CMD ["./pm2.sh"]