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

32 lines
965 B
Docker
Raw Normal View History

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-28 10:59:48 +02:00
RUN 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/#//' /etc/privoxy/config.new > /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