1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-01-18 04:59:16 +02:00
dockerfiles/privoxy/Dockerfile

25 lines
609 B
Docker
Raw Normal View History

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