2015-06-28 18:58:36 +02:00
|
|
|
#
|
|
|
|
# Dockerfile for privoxy
|
|
|
|
#
|
|
|
|
|
2023-08-28 10:52:02 +02:00
|
|
|
FROM alpine:3
|
|
|
|
MAINTAINER EasyPi Software Foundation
|
|
|
|
|
|
|
|
ARG TARGETPLATFORM
|
|
|
|
ARG GOSU_VERSION=1.16
|
2015-06-28 18:58:36 +02:00
|
|
|
|
2016-06-04 10:18:42 +02:00
|
|
|
RUN set -xe \
|
2023-08-28 10:52:02 +02:00
|
|
|
&& echo ${TARGETPLATFORM} \
|
|
|
|
&& GOSU_ARCH=$(echo $TARGETPLATFORM | sed -e 's@linux/@@' \
|
|
|
|
-e 's@amd64@amd64@' \
|
|
|
|
-e 's@arm64@arm64@' \
|
|
|
|
-e 's@arm/v7@armhf@') \
|
|
|
|
&& apk add --no-cache curl privoxy \
|
|
|
|
&& curl -sSL https://github.com/tianon/gosu/releases/download/${GOSU_VERSION}/gosu-${GOSU_ARCH} > /usr/sbin/gosu \
|
2015-06-28 19:18:53 +02:00
|
|
|
&& chmod +x /usr/sbin/gosu \
|
2023-08-28 10:52:02 +02:00
|
|
|
&& apk del curl
|
2015-06-28 18:58:36 +02:00
|
|
|
|
2023-08-29 07:17:26 +02:00
|
|
|
WORKDIR /etc/privoxy
|
|
|
|
|
|
|
|
RUN set -xe \
|
|
|
|
&& for cfg in *.new; do touch ${cfg%.new}; done \
|
|
|
|
&& sed -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/#//' config.new > 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
|