Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions app/artifact-cas/Dockerfile.goreleaser
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
FROM golang:1.27.3@sha256:957861185dbf29d93668ace41e011d091c6e779953d47f0316ef2cc58e28fe2b AS builder

# Refresh the Debian CA bundle in the builder so the trust store copied into the
# scratch image reflects the latest distrust list, rather than the (frozen) bundle
# shipped in the pinned builder digest.
RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates \
&& rm -rf /var/lib/apt/lists/*

FROM scratch

COPY ./artifact-cas /
Expand Down
7 changes: 6 additions & 1 deletion app/cli/Dockerfile.goreleaser
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
FROM golang:1.27.3@sha256:957861185dbf29d93668ace41e011d091c6e779953d47f0316ef2cc58e28fe2b AS builder
RUN mkdir -p /.config/chainloop /rootfs/tmp && chmod 1777 /rootfs/tmp
# Refresh the Debian CA bundle in the builder so the trust store copied into the
# scratch image reflects the latest distrust list, rather than the (frozen) bundle
# shipped in the pinned builder digest.
RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates \
&& rm -rf /var/lib/apt/lists/* \
&& mkdir -p /.config/chainloop /rootfs/tmp && chmod 1777 /rootfs/tmp

FROM scratch

Expand Down
6 changes: 6 additions & 0 deletions app/controlplane/Dockerfile.goreleaser
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
FROM golang:1.27.3@sha256:957861185dbf29d93668ace41e011d091c6e779953d47f0316ef2cc58e28fe2b AS builder

# Refresh the Debian CA bundle in the builder so the trust store copied into the
# scratch image reflects the latest distrust list, rather than the (frozen) bundle
# shipped in the pinned builder digest.
RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates \
&& rm -rf /var/lib/apt/lists/*

FROM scratch

COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
Expand Down
Loading