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