1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00

update privoxy

This commit is contained in:
kev 2023-08-28 16:52:02 +08:00
parent f2dc15cce9
commit 015ee01710
7 changed files with 2869 additions and 46 deletions

View File

@ -2,15 +2,22 @@
# Dockerfile for privoxy
#
FROM alpine
MAINTAINER kev <noreply@easypi.pro>
FROM alpine:3
MAINTAINER EasyPi Software Foundation
ARG TARGETPLATFORM
ARG GOSU_VERSION=1.16
RUN set -xe \
&& apk add -U curl privoxy \
&& curl -sSL https://github.com/tianon/gosu/releases/download/1.9/gosu-amd64 > /usr/sbin/gosu \
&& 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 \
&& rm -rf /var/cache/apk/*
&& 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/' \

View File

@ -1,24 +0,0 @@
#
# Dockerfile for privoxy-arm
#
FROM easypi/alpine-arm
MAINTAINER kev <noreply@easypi.pro>
RUN set -xe \
&& apk add -U curl privoxy \
&& curl -sSL https://github.com/tianon/gosu/releases/download/1.9/gosu-armhf > /usr/sbin/gosu \
&& chmod +x /usr/sbin/gosu \
&& apk del curl \
&& rm -rf /var/cache/apk/*
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

View File

@ -1,8 +0,0 @@
privoxy:
image: easypi/privoxy-arm
ports:
- "8118:8118"
volumes:
- ./privoxy/user.action:/etc/privoxy/user.action
- ./privoxy/user.filter:/etc/privoxy/user.filter
restart: always

2845
privoxy/data/config Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1,8 +1,11 @@
version: "3.8"
services:
privoxy:
image: vimagick/privoxy
ports:
- "8118:8118"
volumes:
- ./privoxy/user.action:/etc/privoxy/user.action
- ./privoxy/user.filter:/etc/privoxy/user.filter
restart: always
- ./data/config:/etc/privoxy/config
- ./data/user.action:/etc/privoxy/user.action
- ./data/user.filter:/etc/privoxy/user.filter
restart: unless-stopped