1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-14 11:23:02 +02:00
dockerfiles/privoxy/Dockerfile

25 lines
609 B
Docker
Raw Normal View History

2015-06-28 18:58:36 +02:00
#
# Dockerfile for privoxy
#
FROM alpine
2017-05-08 01:05:07 +02:00
MAINTAINER kev <noreply@easypi.pro>
2015-06-28 18:58:36 +02:00
2016-06-04 10:18:42 +02:00
RUN set -xe \
&& apk add -U curl privoxy \
&& curl -sSL https://github.com/tianon/gosu/releases/download/1.9/gosu-amd64 > /usr/sbin/gosu \
2015-06-28 19:18:53 +02:00
&& chmod +x /usr/sbin/gosu \
2016-06-04 10:18:42 +02:00
&& apk del curl \
2015-06-28 18:58:36 +02:00
&& rm -rf /var/cache/apk/*
2015-06-28 19:18:53 +02:00
RUN sed -i -e '/^listen-address/s/127.0.0.1/0.0.0.0/' \
-e '/^accept-intercepted-requests/s/0/1/' \
2015-06-30 13:00:43 +02:00
-e '/^enforce-blocks/s/0/1/' \
2015-06-28 19:52:38 +02:00
-e '/^#debug/s/#//' /etc/privoxy/config
2015-06-28 19:18:53 +02:00
2015-06-28 18:58:36 +02:00
VOLUME /etc/privoxy
2016-06-04 10:18:42 +02:00
2015-06-28 18:58:36 +02:00
EXPOSE 8118
2016-06-04 10:18:42 +02:00
CMD gosu privoxy privoxy --no-daemon /etc/privoxy/config