-
Notifications
You must be signed in to change notification settings - Fork 8
/
Dockerfile
28 lines (21 loc) · 841 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
FROM sameersbn/squid:latest
MAINTAINER [email protected]
RUN apt-get update \
&& apt-get install -y squidguard \
&& apt-get install -y apache2
RUN echo 'AddType application/x-ns-proxy-autoconfig .dat' >> /etc/apache2/httpd.conf
ADD wpad.dat /var/www/html/wpad.dat
# for backward compatibility add it also with typo ;)
ADD wpad.dat /var/www/html/wpat.dat
ADD block.html /var/www/html/block.html
RUN echo "redirect_program /usr/bin/squidGuard -c /etc/squidguard/squidGuard.conf" >> /etc/squid3/squid.conf
RUN rm /etc/squidguard/squidGuard.conf
ADD sample-config-blacklist /sample-config-blacklist
ADD sample-config-simple /sample-config-simple
RUN mkdir /custom-config
ADD startSquidGuard /startSquidGuard
RUN chmod a+x /startSquidGuard
EXPOSE 3128 80
VOLUME ["/var/log/squid3"]
VOLUME ["/custom-config"]
CMD ["/startSquidGuard"]