mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-27 12:23:35 +01:00
7eea00edf3
Signed-off-by: Michael Käufl <dockerfiles@c.michael-kaeufl.de>
32 lines
760 B
Docker
32 lines
760 B
Docker
# run a privoxy in a container and link to a tor socks proxy container
|
|
#
|
|
# docker run -d \
|
|
# --restart always \
|
|
# # the link inside the container must be named "torproxy"
|
|
# # see: https://github.com/jessfraz/dockerfiles/blob/master/privoxy/privoxy.conf#L1317
|
|
# --link torproxy:torproxy \
|
|
# -v /etc/localtime:/etc/localtime:ro \
|
|
# -p 8118:8118 \
|
|
# --name privoxy \
|
|
# jess/privoxy
|
|
#
|
|
FROM alpine:latest
|
|
LABEL maintainer "Jessie Frazelle <jess@linux.com>"
|
|
|
|
RUN apk --no-cache add \
|
|
privoxy
|
|
|
|
# expose http port
|
|
EXPOSE 8118
|
|
|
|
# copy in our privoxy config file
|
|
COPY privoxy.conf /etc/privoxy/config
|
|
|
|
# make sure files are owned by privoxy user
|
|
RUN chown -R privoxy /etc/privoxy
|
|
|
|
USER privoxy
|
|
|
|
ENTRYPOINT [ "privoxy", "--no-daemon" ]
|
|
CMD [ "/etc/privoxy/config" ]
|