We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dde9da3 commit 8669de4Copy full SHA for 8669de4
1 file changed
Dockerfile
@@ -1,14 +1,17 @@
1
FROM quay.io/rockylinux/rockylinux:10
2
LABEL maintainer=StackHPC
3
4
-ENV SQUID_VERSION=5.5 \
5
- SQUID_CACHE_DIR=/var/spool/squid \
+ARG SQUID_VERSION=""
+
6
+ENV SQUID_CACHE_DIR=/var/spool/squid \
7
SQUID_LOG_DIR=/var/log/squid \
8
SQUID_USER=squid
9
-RUN dnf install -y \
10
- which \
11
- squid-${SQUID_VERSION}
+RUN if [[ -z "${SQUID_VERSION}" ]]; then \
+ microdnf install -y which squid; \
12
+ else \
13
+ microdnf install -y which squid-${SQUID_VERSION}; \
14
+ fi
15
16
COPY squid.conf /etc/squid/squid.conf
17
RUN chown root:squid /etc/squid/squid.conf
0 commit comments