選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

Dockerfile 1.1KB

1234567891011121314151617181920212223242526
  1. FROM nginx
  2. ### Copy files from the temp build
  3. COPY ./nginx/temp/index.html /opt/app/public/index.html
  4. ### Setup SSL
  5. RUN mkdir -p /etc/ssl/private && chmod 700 /etc/ssl/private
  6. RUN mkdir -p /etc/ssl/certs && chmod 700 /etc/ssl/certs
  7. ### Copy the SSL Certificate and Key
  8. COPY ./nginx/keys/letsencrypt.key /etc/ssl/private/letsencrypt.key
  9. COPY ./nginx/keys/letsencrypt.crt /etc/ssl/certs/letsencrypt.crt
  10. COPY ./nginx/keys/letsencrypt-freehand.key /etc/ssl/private/letsencrypt-freehand.key
  11. COPY ./nginx/keys/letsencrypt-freehand.crt /etc/ssl/certs/letsencrypt-freehand.crt
  12. ### Configure Nginx to Use SSL
  13. RUN mkdir -p /etc/nginx/snippets
  14. COPY ./nginx/configs/letsencrypt.conf /etc/nginx/snippets/letsencrypt.conf
  15. COPY ./nginx/configs/ssl-params.conf /etc/nginx/snippets/ssl-params.conf
  16. COPY ./nginx/configs/letsencrypt-freehand.conf /etc/nginx/snippets/letsencrypt-freehand.conf
  17. COPY ./nginx/configs/ssl-params-freehand.conf /etc/nginx/snippets/ssl-params-freehand.conf
  18. ### Move over the nginx.conf and default.config server configs
  19. COPY ./nginx/configs/default.conf /etc/nginx/conf.d/default.conf
  20. COPY ./nginx/configs/nginx.conf /etc/nginx/nginx.conf