fix(asb, asb-controller): install root certificates in docker image (#569)

Co-authored-by: binarybaron <binarybaron@mail.mail>
This commit is contained in:
Mohan 2025-09-18 15:19:24 -04:00 committed by GitHub
parent 36c1c3a28b
commit b340b22f0c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 16 additions and 0 deletions

View file

@ -93,6 +93,14 @@ RUN cargo build --release --locked -vv -p swap-controller --bin=asb-controller
# Latest Ubuntu 24.04 image as of Tue, 05 Aug 2025 15:34:08 GMT
FROM ubuntu:24.04@sha256:a08e551cb33850e4740772b38217fc1796a66da2506d312abe51acda354ff061 AS runner
# Install native root certificates
ENV DEBIAN_FRONTEND=noninteractive
RUN --mount=type=cache,target=/var/cache/apt \
--mount=type=cache,target=/var/lib/apt \
apt-get update && \
apt-get install -y ca-certificates && \
update-ca-certificates
COPY --from=builder /target/release/asb /bin/asb
COPY --from=builder /target/release/asb-controller /bin/asb-controller

View file

@ -12,6 +12,14 @@ RUN cargo build --locked --bin asb-controller --release
# Latest Debian Bookworm image as of Tue, 05 Aug 2025 15:34:08 GMT
FROM debian:bookworm@sha256:b6507e340c43553136f5078284c8c68d86ec8262b1724dde73c325e8d3dcdeba AS runner
# Install native root certificates
ENV DEBIAN_FRONTEND=noninteractive
RUN --mount=type=cache,target=/var/cache/apt \
--mount=type=cache,target=/var/lib/apt \
apt-get update && \
apt-get install -y ca-certificates && \
update-ca-certificates
COPY --from=builder /build/target/release/asb-controller /usr/local/bin/asb-controller
ENTRYPOINT ["/usr/local/bin/asb-controller"]