19 lines
533 B
Docker
19 lines
533 B
Docker
FROM fholzer/nginx-brotli:latest
|
|
|
|
RUN rm -rf /usr/share/nginx/html/*
|
|
|
|
COPY ./ipsets /usr/share/nginx/html/ipsets
|
|
COPY ./lists /usr/share/nginx/html/lists
|
|
COPY ./scripts /usr/share/nginx/html/scripts
|
|
|
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
|
RUN find /usr/share/nginx/html/lists -name "*.txt" -exec sed -i 's/#.*//g; /^$/d' {} +
|
|
|
|
RUN dos2unix /usr/share/nginx/html/scripts/*.sh && \
|
|
chmod +x /usr/share/nginx/html/scripts/*.sh
|
|
|
|
EXPOSE 80
|
|
|
|
ENTRYPOINT ["/usr/share/nginx/html/scripts/entrypoint.sh"]
|
|
CMD ["-g", "daemon off;"]
|