salix/services/nginx/Dockerfile

19 lines
378 B
Docker
Raw Normal View History

2016-11-17 09:18:11 +00:00
FROM nginx
RUN rm /etc/nginx/nginx.conf
RUN rm /etc/nginx/conf.d/default.conf
2017-05-11 10:07:33 +00:00
COPY conf-prod.conf /etc/nginx/nginx.conf
2016-11-17 09:18:11 +00:00
2017-05-11 10:07:33 +00:00
COPY static /usr/share/nginx/html
2017-05-15 06:33:51 +00:00
RUN apt-get update && apt-get -y install vim dnsmasq dnsutils
2017-05-15 05:53:06 +00:00
2017-06-05 07:22:36 +00:00
RUN rm -fr /usr/share/dns
2017-05-15 06:07:30 +00:00
RUN echo listen-address=127.0.0.1 > /etc/dnsmasq.d/dnsmasq.conf
2017-05-15 05:53:06 +00:00
2017-05-15 09:12:00 +00:00
CMD service dnsmasq restart && nginx -g "daemon off;"
EXPOSE 80