1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-27 09:18:43 +00:00
dockerfiles/privoxy/Dockerfile

25 lines
609 B
Docker
Raw Normal View History

2015-06-28 16:58:36 +00:00
#
# Dockerfile for privoxy
#
FROM alpine
2017-05-07 23:05:07 +00:00
MAINTAINER kev <noreply@easypi.pro>
2015-06-28 16:58:36 +00:00
2016-06-04 08:18:42 +00: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 17:18:53 +00:00
&& chmod +x /usr/sbin/gosu \
2016-06-04 08:18:42 +00:00
&& apk del curl \
2015-06-28 16:58:36 +00:00
&& rm -rf /var/cache/apk/*
2015-06-28 17:18:53 +00: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 11:00:43 +00:00
-e '/^enforce-blocks/s/0/1/' \
2015-06-28 17:52:38 +00:00
-e '/^#debug/s/#//' /etc/privoxy/config
2015-06-28 17:18:53 +00:00
2015-06-28 16:58:36 +00:00
VOLUME /etc/privoxy
2016-06-04 08:18:42 +00:00
2015-06-28 16:58:36 +00:00
EXPOSE 8118
2016-06-04 08:18:42 +00:00
CMD gosu privoxy privoxy --no-daemon /etc/privoxy/config