hapi-nginx.dockerfile 317 B

1234567891011121314151617181920
  1. FROM node:18.12.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. EXPOSE 8080
  12. CMD ./start-servers.sh && nginx -c /nginx.conf -g "daemon off;"