Skip to content

Commit

Permalink
added labels
Browse files Browse the repository at this point in the history
  • Loading branch information
Lewis Brown authored and Lewis Brown committed Jan 6, 2025
1 parent a652e30 commit de64837
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 7 additions & 2 deletions squid/6.12/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,15 @@ ENV SQUID_VERSION=6.12-r0 \
ENTRYPOINT=/usr/local/bin/entrypoint.sh \
SQUID_USER=squid

LABEL title="squid-alpine"
LABEL version="1.0"
LABEL organisation="DVSA"
LABEL description="Builds Alpine Squid base image that does not include bespoke Squid.conf file. This file should be added to /etc/squid/conf.d/ directory"

# Copy required scripts. The squid-alpine.conf should be mounted to /etc/squid/conf.d/squid.conf at container runtime.
COPY entrypoint.sh ${ENTRYPOINT}

# Install squid
# Install Squid
RUN apk update \
&& apk --no-cache add squid=${SQUID_VERSION} \
# Create required directories and set permissions
Expand All @@ -21,7 +26,7 @@ RUN apk update \
&& sed -i '1s;^;include /etc/squid/conf.d/*.conf\n;' /etc/squid/squid.conf

# Set non root user
# When squid is installed a user called squid is automatically created
# When Squid is installed a user called squid is automatically created
USER ${SQUID_USER}

EXPOSE 3128/tcp
Expand Down
2 changes: 2 additions & 0 deletions squid/6.12/squid-alpine.conf
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This is a dummy squid.conf that is not included in the Docker image.
# It should be mounted in /etc/squid/conf.d
# This squid.conf allows all traffic and should only be use for testing.
acl all src all
http_port 3128
Expand Down

0 comments on commit de64837

Please sign in to comment.