-
Notifications
You must be signed in to change notification settings - Fork 1
/
squid.alpine.Dockerfile
40 lines (34 loc) · 1.46 KB
/
squid.alpine.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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# build: docker build --no-cache --progress=plain -t tobi312/tools:squid -f squid.alpine.Dockerfile .
FROM alpine:latest
ARG VCS_REF
ARG BUILD_DATE
LABEL org.opencontainers.image.title="squid" \
org.opencontainers.image.authors="Squid Software Foundation, Tobias Hargesheimer <docker@ison.ws>" \
org.opencontainers.image.version="${BUILD_DATE}.${VCS_REF}" \
org.opencontainers.image.created="${BUILD_DATE}" \
org.opencontainers.image.revision="${VCS_REF}" \
org.opencontainers.image.description="Squid Web Proxy Cache" \
org.opencontainers.image.documentation="http://www.squid-cache.org/" \
org.opencontainers.image.base.name="docker.io/library/alpine:latest" \
org.opencontainers.image.licenses="GPL-2.0" \
org.opencontainers.image.url="https://hub.docker.com/r/tobi312/tools" \
org.opencontainers.image.source="https://github.com/Tob1as/docker-tools"
SHELL ["/bin/sh", "-euxo", "pipefail", "-c"]
RUN \
apk add --no-cache \
squid \
#acf-squid \
#squid-doc \
#squid-lang-de \
#ca-certificates \
; \
echo -e "\npid_filename none" >> /etc/squid/squid.conf ; \
mkdir /etc/squid/conf.d/ ; \
echo -e "\ninclude /etc/squid/conf.d/*.conf" >> /etc/squid/squid.conf ; \
touch /etc/squid/conf.d/empty.conf ; \
echo ">> squid installed!"
USER squid
#VOLUME /var/cache/squid
EXPOSE 3128/tcp
ENTRYPOINT ["/usr/sbin/squid"]
CMD ["-f", "/etc/squid/squid.conf", "-NYCd", "1"]