mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2025-02-01 18:02:42 +01:00
32 lines
659 B
Docker
32 lines
659 B
Docker
|
# run a privoxy in a container and link to a tor socks proxy container
|
||
|
#
|
||
|
# Exit relay:
|
||
|
# docker run -d \
|
||
|
# --restart always \
|
||
|
# --link torproxy:torproxy \
|
||
|
# -v /etc/localtime:/etc/localtime:ro \
|
||
|
# -p 8118:8118 \
|
||
|
# --name privoxy \
|
||
|
# jess/privoxy
|
||
|
#
|
||
|
FROM alpine:latest
|
||
|
MAINTAINER Jessica Frazelle <jess@docker.com>
|
||
|
|
||
|
RUN apk update && apk add \
|
||
|
privoxy \
|
||
|
&& rm -rf /var/cache/apk/*
|
||
|
|
||
|
# 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" ]
|