Skip to content

Commit 84041cc

Browse files
authored
Fix egress proxy ARM64 build by using Alpine edge repository (#1995)
The squid package is not available in Alpine Linux 3.22.1 repositories for ARM64 architecture, causing multi-architecture Docker builds to fail. This change adds the Alpine edge community repository to access the squid package for both AMD64 and ARM64 architectures. Fixes #1994
1 parent d951d8b commit 84041cc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

containers/egress-proxy/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# Use Alpine Linux 3.22.0 for minimal footprint
22
FROM alpine:3.22.1
33

4-
# Install squid and create necessary directories
5-
RUN apk add --no-cache squid \
4+
# Install squid from edge repository and create necessary directories
5+
RUN echo "https://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories \
6+
&& apk add --no-cache squid \
67
&& mkdir -p /var/cache/squid /var/log/squid \
78
&& chown -R squid:squid /var/cache/squid /var/log/squid /var/run/squid \
89
&& chmod 750 /var/cache/squid /var/log/squid

0 commit comments

Comments
 (0)