Skip to content

Commit 0c0e2cb

Browse files
bugerclaude
andcommitted
fix(ci): add ca-certificates and hardening for s390x fallback in Dockerfile.std
The s390x fallback stage uses debian:trixie-slim as a base but was missing ca-certificates installation and CVE surface hardening that the original Dockerfile.std included. This ensures the s390x image remains functional and secure. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent c664bf2 commit 0c0e2cb

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

ci/Dockerfile.std

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@ FROM tykio/dhi-busybox:1.37-fips AS base-amd64
1414
FROM tykio/dhi-busybox:1.37-fips AS base-arm64
1515
# Fallback for s390x (no FIPS base available)
1616
FROM debian:trixie-slim AS base-s390x
17+
RUN apt-get update \
18+
&& apt-get dist-upgrade -y ca-certificates \
19+
&& (dpkg --purge --force-remove-essential curl ncurses-base || true) \
20+
&& (rm -fv /usr/bin/passwd /usr/sbin/adduser || true) \
21+
&& apt-get -y autoremove \
22+
&& apt-get clean \
23+
&& rm -rf /var/cache/apt/archives /var/lib/apt /var/lib/cache /var/log/*
1724

1825
FROM base-${TARGETARCH}
1926
ARG TARGETARCH

0 commit comments

Comments
 (0)