forked from sameersbn/docker-squid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
25 lines (21 loc) · 1.23 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM alpine
MAINTAINER [email protected]
RUN apk update \
&& apk add openssl squid \
&& rm -rf /var/cache/apk/* \
&& { \
echo ''; \
echo '[ v3_req ]'; \
echo 'basicConstraints = CA:FALSE'; \
echo 'keyUsage = nonRepudiation, digitalSignature, keyEncipherment'; \
echo ''; \
echo '[ v3_ca ]'; \
echo 'keyUsage = cRLSign, keyCertSign'; \
} >> /etc/ssl/openssl.cnf
COPY squid.conf /etc/squid/squid.conf
COPY entrypoint.sh /sbin/entrypoint.sh
RUN chmod 755 /sbin/entrypoint.sh
EXPOSE 3128/tcp
VOLUME ["/var/cache/squid", "/etc/squid/ssl_cert", "/var/lib/squid"]
ENTRYPOINT ["/sbin/entrypoint.sh"]
CMD ["/usr/sbin/squid", "-f", "/etc/squid/squid.conf", "-NYCd", "1"]