| 123456789101112131415161718192021 |
- FROM nginx
-
- ### Copy files from the temp build
- COPY ./nginx/temp/index.html /opt/<CHANGE_ME>/public/index.html
-
- ### Setup SSL
- RUN mkdir -p /etc/ssl/private && chmod 700 /etc/ssl/private
- RUN mkdir -p /etc/ssl/certs && chmod 700 /etc/ssl/certs
-
- ### Copy the SSL Certificate and Key
- COPY ./nginx/keys/letsencrypt.key /etc/ssl/private/letsencrypt.key
- COPY ./nginx/keys/letsencrypt.crt /etc/ssl/certs/letsencrypt.crt
-
- ### Configure Nginx to Use SSL
- RUN mkdir -p /etc/nginx/snippets
- COPY ./nginx/configs/letsencrypt.conf /etc/nginx/snippets/letsencrypt.conf
- COPY ./nginx/configs/ssl-params.conf /etc/nginx/snippets/ssl-params.conf
-
- ### Move over the nginx.conf and default.config server configs
- COPY ./nginx/configs/default.conf /etc/nginx/conf.d/default.conf
- COPY ./nginx/configs/nginx.conf /etc/nginx/nginx.conf
|