squid (latest)

Published 2022-10-12 15:33:07 +00:00 by b4tman in b4tman/docker-squid

Installation

docker pull gitea.b4tman.ru/b4tman/squid:latest
sha256:ebb3aab5c488aee464ecbb0d62cf26ee79c012e35ca2907322c959adde4e3bd2

About this package

Squid in docker container based on Alpine Linux

Image Layers

ADD file:2a949686d9886ac7c10582a6c29116fd29d3077d02755e87e111870d63607725 in /
CMD ["/bin/sh"]
ENV SQUID_CONFIG_FILE=/etc/squid/squid.conf
ENV TZ=Europe/Moscow
RUN /bin/sh -c set -x && deluser squid 2>/dev/null; delgroup squid 2>/dev/null; addgroup -S squid -g 3128 && adduser -S -u 3128 -G squid -g squid -H -D -s /bin/false -h /var/cache/squid squid # buildkit
RUN /bin/sh -c apk add --no-cache libstdc++ heimdal-libs libcap libressl3.5-libcrypto libressl3.5-libssl libltdl # buildkit
COPY /etc/squid/ /etc/squid/ # buildkit
COPY /usr/lib/squid/ /usr/lib/squid/ # buildkit
COPY /usr/share/squid/ /usr/share/squid/ # buildkit
COPY /usr/sbin/squid /usr/sbin/squid # buildkit
COPY /usr/bin/squidclient /usr/bin/squidclient # buildkit
RUN /bin/sh -c install -d -o squid -g squid /var/cache/squid /var/log/squid /var/run/squid && chmod +x /usr/lib/squid/* # buildkit
RUN /bin/sh -c install -d -m 755 -o squid -g squid /etc/squid/conf.d /etc/squid/conf.d.tail # buildkit
RUN /bin/sh -c touch /etc/squid/conf.d/placeholder.conf # buildkit
COPY squid-log.conf /etc/squid/conf.d.tail/ # buildkit
RUN /bin/sh -c set -x && apk add --no-cache --virtual .tz alpine-conf tzdata && /sbin/setup-timezone -z $TZ && apk del .tz # buildkit
VOLUME [/var/cache/squid]
EXPOSE map[3128/tcp:{}]
USER squid
CMD ["sh" "-c" "/usr/sbin/squid -f ${SQUID_CONFIG_FILE} --foreground -z && exec /usr/sbin/squid -f ${SQUID_CONFIG_FILE} --foreground -YCd 1"]

Labels

Key Value
org.opencontainers.image.created 2022-10-01T08:43:31.991Z
org.opencontainers.image.description Squid in docker container based on Alpine Linux
org.opencontainers.image.licenses MIT
org.opencontainers.image.revision d54e44e3775162fdd6c6f7852f23dedd5dd67ab6
org.opencontainers.image.source https://github.com/b4tman/docker-squid
org.opencontainers.image.title docker-squid
org.opencontainers.image.url https://github.com/b4tman/docker-squid
org.opencontainers.image.version master
Details
Container
2022-10-12 15:33:07 +00:00
1
OCI / Docker
linux/amd64
MIT
13 MiB
Versions (1) View all
latest 2022-10-12