dockerfiles/privoxy/Dockerfile
Marc Cornellà 7ac4881609 Use `apk --no-cache' on alpine images (#144)
This enables us to remove the following patterns that required
a `rm -rf /var/cache/apk`:

- `apk update`
- `apk add --update`
- `apk add --update-cache`

Supported since alpine 3.3.
2016-06-06 03:40:20 +00:00

30 lines
605 B
Docker

# run a privoxy in a container and link to a tor socks proxy container
#
# 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 --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" ]