From 432c98b6514682ba2f6ef7466286ef385d00b6ed Mon Sep 17 00:00:00 2001 From: sbaizet <74511063+sbaizet-ledger@users.noreply.github.com> Date: Tue, 27 Aug 2024 15:12:04 +0200 Subject: [PATCH] add ca-certificates package to bridge-history services (#1506) --- build/dockerfiles/bridgehistoryapi-db-cli.Dockerfile | 2 ++ build/dockerfiles/bridgehistoryapi-fetcher.Dockerfile | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/build/dockerfiles/bridgehistoryapi-db-cli.Dockerfile b/build/dockerfiles/bridgehistoryapi-db-cli.Dockerfile index 6797d9e92c..cf728837fc 100644 --- a/build/dockerfiles/bridgehistoryapi-db-cli.Dockerfile +++ b/build/dockerfiles/bridgehistoryapi-db-cli.Dockerfile @@ -15,5 +15,7 @@ RUN --mount=target=. \ # Pull db_cli into a second stage deploy alpine container FROM alpine:latest COPY --from=builder /bin/db_cli /bin/ +RUN apk update && apk add ca-certificates +RUN update-ca-certificates WORKDIR /app ENTRYPOINT ["db_cli"] \ No newline at end of file diff --git a/build/dockerfiles/bridgehistoryapi-fetcher.Dockerfile b/build/dockerfiles/bridgehistoryapi-fetcher.Dockerfile index 68815e63c5..991b2b11aa 100644 --- a/build/dockerfiles/bridgehistoryapi-fetcher.Dockerfile +++ b/build/dockerfiles/bridgehistoryapi-fetcher.Dockerfile @@ -17,7 +17,8 @@ RUN --mount=target=. \ FROM ubuntu:20.04 ENV CGO_LDFLAGS="-Wl,--no-as-needed -ldl" - +RUN apk update && apk add ca-certificates +RUN update-ca-certificates COPY --from=builder /bin/bridgehistoryapi-fetcher /bin/ WORKDIR /app ENTRYPOINT ["bridgehistoryapi-fetcher"]