15 lines
375 B
Docker
15 lines
375 B
Docker
FROM nginx
|
|
|
|
RUN rm /etc/nginx/nginx.conf
|
|
RUN rm /etc/nginx/conf.d/default.conf
|
|
|
|
COPY temp/nginx.conf /etc/nginx/nginx.conf
|
|
COPY static /usr/share/nginx/html
|
|
|
|
RUN apt-get update && apt-get -y install vim dnsmasq dnsutils
|
|
RUN rm -fr /usr/share/dns
|
|
RUN echo listen-address=127.0.0.1 > /etc/dnsmasq.d/dnsmasq.conf
|
|
|
|
CMD service dnsmasq restart && nginx -g "daemon off;"
|
|
|
|
EXPOSE 80 |