Base dockerized squid proxy

Here the dockerfile for an alpine based squid proxy working with default installation

FROM alpine
RUN apk update && \
apk add squid
CMD ["/usr/sbin/squid", "-NCd1"]

Build the image:

docker build -t basic_squid .

and create the container by running:

docker run -d --rm --name squid-test -p 3128:3128 basic_squid

test it by running curl:

curl -x http://localhost:3128 -L http://x.x.x.x