19 lines
594 B
Docker
19 lines
594 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 ln-nginx && yum clean all
|
||
|
|
||
|
EXPOSE 80 443
|
||
|
|
||
|
# 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;" ]
|