1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-30 18:51:24 +00:00
dockerfiles/privoxy/Dockerfile

36 lines
1.0 KiB
Docker
Raw Normal View History

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