nginx/Dockerfile

22 lines
687 B
Docker
Raw Normal View History

2016-08-22 02:11:35 +00:00
# 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
2016-11-09 11:46:33 +00:00
RUN yum -y install certbot nginx ln-nginx && yum clean all
2016-08-22 02:11:35 +00:00
EXPOSE 80 443
COPY renew.sh /usr/local/sbin
LABEL cron.weekly root:/usr/local/sbin/renew.sh
2016-08-22 02:11:35 +00:00
# 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;" ]