|
@@ -1,14 +1,16 @@
|
|
|
FROM centos:7.4.1708
|
|
|
COPY nginx.repo /etc/yum.repos.d/nginx.repo
|
|
|
+ARG git_dir=pki
|
|
|
RUN yum install -y epel-release \
|
|
|
&& yum install yum-utils python2-certbot-nginx openssl ca-certificates nginx -y \
|
|
|
&& yum install -y https://centos7.iuscommunity.org/ius-release.rpm \
|
|
|
&& yum install -y git2u \
|
|
|
&& mkdir -p /var/www/html/.well-known \
|
|
|
+ && mkdir -p /${git_dir} \
|
|
|
&& 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/
|
|
|
-COPY pki/letsencrypt/ /etc/letsencrypt/
|
|
|
+COPY ${git_dir}/letsencrypt/ /${git_dir}/letsencrypt/
|
|
|
EXPOSE 80
|
|
|
CMD ["nginx", "-g", "daemon off;"]
|