-
Notifications
You must be signed in to change notification settings - Fork 10
/
Dockerfile
26 lines (20 loc) · 907 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
FROM debian:wheezy
MAINTAINER Arulraj Venni <[email protected]>
# Install privoxy
RUN apt-get update -qq \
&& apt-get install -y privoxy supervisor wget \
&& apt-get clean autoclean \
&& apt-get autoremove -y \
&& rm -rf /var/lib/{apt,dpkg,cache,log}/* /tmp/* /var/tmp/* \
&& mkdir -p /opt/supervisor/conf.d /opt/privoxy
# Add custom supervisor config
COPY ./supervisord/supervisord.conf /opt/supervisor/supervisord.conf
COPY ./supervisord/privoxy-supervisor.conf /opt/supervisor/conf.d/privoxy-supervisor.conf
COPY ./supervisord/adblock2privoxy-supervisor.conf /opt/supervisor/conf.d/adblock2privoxy-supervisor.conf
# Add custom privoxy config
COPY ./privoxy/config /opt/privoxy/config
COPY ./privoxy/privoxy-blocklist_0.2.sh /opt/privoxy/privoxy-blocklist_0.2.sh
RUN chmod +x /opt/privoxy/privoxy-blocklist_0.2.sh
# Ports
EXPOSE 8118
CMD ["supervisord", "-c", "/opt/supervisor/supervisord.conf"]