1
0

Dockerfile 409 B

12345678910111213
  1. FROM alpine
  2. RUN apk add nginx
  3. RUN mkdir -p /run/nginx
  4. ADD default.conf /etc/nginx/http.d/default.conf
  5. ADD *.key /etc/ssl/private/
  6. ADD *.crt /etc/ssl/certs/
  7. WORKDIR /var/www/localhost/htdocs
  8. COPY entrypoint.sh /usr/local/bin
  9. RUN chmod +x /usr/local/bin/entrypoint.sh
  10. ENTRYPOINT ["/bin/sh", "/usr/local/bin/entrypoint.sh"]
  11. #EXPOSE 80
  12. EXPOSE 443
  13. CMD ["/bin/sh", "-c", "nginx -g 'daemon off;'; nginx -s reload;"]