hapi-nginx.dockerfile 303 B

123456789101112131415161718
  1. FROM node:12.3.1-slim
  2. RUN apt-get update
  3. RUN apt-get 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;"