|
@@ -1,4 +1,4 @@
|
|
-FROM centos:7.4.1708
|
|
|
|
|
|
+FROM centos:7.4.1708
|
|
COPY nginx.repo /etc/yum.repos.d/nginx.repo
|
|
COPY nginx.repo /etc/yum.repos.d/nginx.repo
|
|
RUN yum install -y epel-release \
|
|
RUN yum install -y epel-release \
|
|
&& yum install yum-utils python2-certbot-nginx openssl ca-certificates nginx -y \
|
|
&& yum install yum-utils python2-certbot-nginx openssl ca-certificates nginx -y \
|
|
@@ -7,6 +7,6 @@ RUN yum install -y epel-release \
|
|
&& ln -sf /dev/stderr /var/log/nginx/error.log
|
|
&& ln -sf /dev/stderr /var/log/nginx/error.log
|
|
#COPY cli.ini /etc/letsencrypt/
|
|
#COPY cli.ini /etc/letsencrypt/
|
|
COPY default.conf /etc/nginx/conf.d/
|
|
COPY default.conf /etc/nginx/conf.d/
|
|
|
|
+COPY letsencrypt/ /etc/letsencrypt/
|
|
EXPOSE 80
|
|
EXPOSE 80
|
|
CMD ["nginx", "-g", "daemon off;"]
|
|
CMD ["nginx", "-g", "daemon off;"]
|
|
-
|
|
|