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