hapi-nginx.dockerfile 291 B

123456789101112131415161718
  1. FROM node:10.12.0
  2. RUN apt update
  3. RUN apt install nginx -y
  4. WORKDIR /
  5. COPY ./ ./
  6. RUN chmod +x start-servers.sh
  7. RUN chmod +x build-nginx-conf.sh
  8. RUN ./build-nginx-conf.sh
  9. ENV NODE_HANDLER sequelize-postgres
  10. RUN npm install
  11. CMD ./start-servers.sh && nginx -c /nginx.conf -g "daemon off;"