22 lines
687 B
Docker
22 lines
687 B
Docker
# NAME leenooks/nginx
|
|
# VERSION latest
|
|
# BUILD docker build -t="leenooks/nginx" .
|
|
# START docker run -dp 80:80 -p 443:433 -v /srv/nginx/conf.d:/etc/nginx/conf.d [-v /srv/nginx/default.d:/etc/nginx/default.d] [--link web] --restart=always --name=nginx leenooks/nginx
|
|
|
|
FROM registry.leenooks.net/leenooks/base:7
|
|
|
|
RUN yum -y install epel-release && yum clean all
|
|
RUN yum -y install certbot nginx ln-nginx && yum clean all
|
|
|
|
EXPOSE 80 443
|
|
|
|
COPY renew.sh /usr/local/sbin
|
|
LABEL cron.weekly root:/usr/local/sbin/renew.sh
|
|
|
|
# Expose our web root and log directories log.
|
|
#VOLUME [ "/etc/nginx/conf.d", "/etc/nginx/default.d" ]
|
|
|
|
# Starting
|
|
ENTRYPOINT [ "/usr/sbin/nginx" ]
|
|
CMD [ "-g daemon off;" ]
|