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