2015-09-12 00:08:20 +02:00
|
|
|
# run a privoxy in a container and link to a tor socks proxy container
|
|
|
|
#
|
2015-09-13 07:56:30 +02:00
|
|
|
# docker run -d \
|
|
|
|
# --restart always \
|
2016-10-25 23:02:21 +02:00
|
|
|
# # the link inside the container must be named "torproxy"
|
|
|
|
# # see: https://github.com/jessfraz/dockerfiles/blob/master/privoxy/privoxy.conf#L1317
|
2015-09-13 07:56:30 +02:00
|
|
|
# --link torproxy:torproxy \
|
|
|
|
# -v /etc/localtime:/etc/localtime:ro \
|
|
|
|
# -p 8118:8118 \
|
|
|
|
# --name privoxy \
|
|
|
|
# jess/privoxy
|
2015-09-12 00:08:20 +02:00
|
|
|
#
|
|
|
|
FROM alpine:latest
|
2017-03-09 19:14:37 +01:00
|
|
|
LABEL maintainer "Jessie Frazelle <jess@linux.com>"
|
2015-09-12 00:08:20 +02:00
|
|
|
|
2016-06-06 05:40:20 +02:00
|
|
|
RUN apk --no-cache add \
|
|
|
|
privoxy
|
2015-09-12 00:08:20 +02:00
|
|
|
|
|
|
|
# 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" ]
|