express-template/Dockerfile

16 lines
214 B
Docker

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