|
3 | 3 | ARG ARCH |
4 | 4 |
|
5 | 5 | # mcr.microsoft.com/azurelinux/base/core:3.0 |
6 | | -FROM mcr.microsoft.com/azurelinux/base/core@sha256:a452d39c91576f5a2c983c7d3b62521fabd08e16b4a7237e24bf2be3b06e1651 AS mariner-core |
| 6 | +FROM mcr.microsoft.com/azurelinux/base/core@sha256:2d83ae6e0d21cd58973633948d903038679f70fb594d6565626f29ddc162fe0c AS mariner-core |
7 | 7 |
|
8 | 8 | # mcr.microsoft.com/azurelinux/distroless/minimal:3.0 |
9 | | -FROM mcr.microsoft.com/azurelinux/distroless/minimal@sha256:22810fd97d6ad5ec7d5bdd5b00233a3050be01d9e26b47b16cb6f1a7f178834b AS mariner-distroless |
| 9 | +FROM mcr.microsoft.com/azurelinux/distroless/minimal@sha256:0c64ab9cfc44d4f100c0590bd59ead9afedda6cc54f14bb7465b5f9c35ddc037 AS mariner-distroless |
10 | 10 |
|
11 | 11 | # mcr.microsoft.com/oss/go/microsoft/golang:1.24-azurelinux3.0 |
12 | 12 | FROM --platform=linux/${ARCH} mcr.microsoft.com/oss/go/microsoft/golang@sha256:bc7423b52b62e8f0281b5f7f564eb1862dc315bc57e1373c6a81e87ef3ac39ab AS go |
@@ -48,12 +48,14 @@ RUN if [ "$ARCH" = "amd64" ]; then \ |
48 | 48 | RUN GOOS=$OS CGO_ENABLED=0 go generate ./bpf-prog/azure-block-iptables/... |
49 | 49 | RUN GOOS=$OS CGO_ENABLED=0 go build -a -o /go/bin/azure-block-iptables -trimpath -ldflags "-s -w -X main.version="$AZURE_BLOCK_IPTABLES_VERSION"" -gcflags="-dwarflocationlists=true" ./bpf-prog/azure-block-iptables/cmd/azure-block-iptables |
50 | 50 |
|
51 | | -FROM mariner-core AS iptables |
52 | | -RUN tdnf install -y iptables |
| 51 | +FROM mariner-core AS iptools |
| 52 | +RUN tdnf install -y iptables iproute |
53 | 53 |
|
54 | 54 | FROM mariner-distroless AS linux |
55 | | -COPY --from=iptables /usr/sbin/*tables* /usr/sbin/ |
56 | | -COPY --from=iptables /usr/lib /usr/lib |
| 55 | +COPY --from=iptools /usr/sbin/*tables* /usr/sbin/ |
| 56 | +COPY --from=iptools /usr/sbin/ip /usr/sbin/ |
| 57 | +COPY --from=iptools /usr/lib /usr/lib |
| 58 | +COPY --from=iptools /usr/lib64 /usr/lib64 |
57 | 59 | COPY --from=azure-iptables-monitor /go/bin/iptables-monitor azure-iptables-monitor |
58 | 60 | COPY --from=azure-block-iptables /go/bin/azure-block-iptables azure-block-iptables |
59 | 61 |
|
|
0 commit comments