2
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-12-24 06:28:23 +01:00
Files
dockerfiles_vimagick/privoxy/Dockerfile
2023-08-28 16:52:11 +08:00

32 lines
951 B
Docker

#
# Dockerfile for privoxy
#
FROM alpine:3
MAINTAINER EasyPi Software Foundation
ARG TARGETPLATFORM
ARG GOSU_VERSION=1.16
RUN set -xe \
&& 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 \
&& chmod +x /usr/sbin/gosu \
&& apk del curl
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