Skip to content

Commit 7fb96bd

Browse files
authored
Merge pull request #4052 from hakman/add-ca-certificates
Add ca-certificates to debian-base
2 parents bf018ad + ead3ad8 commit 7fb96bd

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

images/build/debian-base/bookworm/Dockerfile.build

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,22 @@
1313
# limitations under the License.
1414

1515
ARG BASEIMAGE
16-
FROM $BASEIMAGE
1716

18-
ARG ARCH
17+
FROM $BASEIMAGE AS certs
18+
19+
ENV DEBIAN_FRONTEND=noninteractive
20+
21+
# Install ca-certificates and dependencies
22+
RUN apt-get update \
23+
&& apt-get install -y ca-certificates
24+
25+
FROM $BASEIMAGE
1926

2027
ENV DEBIAN_FRONTEND=noninteractive
2128

29+
# Copy only ca-certificates without any dependencies
30+
COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
31+
2232
# Smaller package install size.
2333
COPY excludes /etc/dpkg/dpkg.cfg.d/excludes
2434

0 commit comments

Comments
 (0)