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

36 lines
1.0 KiB
Docker
Raw Permalink Normal View History

2015-06-29 00:58:36 +08:00
#
# Dockerfile for privoxy
#
2023-08-28 16:52:02 +08:00
FROM alpine:3
MAINTAINER EasyPi Software Foundation
ARG TARGETPLATFORM
ARG GOSU_VERSION=1.16
2015-06-29 00:58:36 +08:00
2016-06-04 16:18:42 +08:00
RUN set -xe \
2023-08-28 16:52:02 +08: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-29 01:18:53 +08:00
&& chmod +x /usr/sbin/gosu \
2023-08-28 16:52:02 +08:00
&& apk del curl
2015-06-29 00:58:36 +08: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-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