Skip to content

Commit 3b28537

Browse files
authored
fix: include RDS CA certificates in backend images (#691)
* fix: include RDS CA certificates in backend images * fix: download RDS CA bundle during image builds
1 parent 9284910 commit 3b28537

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎Dockerfile‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ RUN CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH go build -trimpath -o /out/o
5656

5757
FROM gcr.io/distroless/static-debian12:nonroot@sha256:f5b485ea962d9bd1186b2f6b3a061191539b905b82ec395de78cbfae51f20e35 AS runtime
5858
WORKDIR /app
59+
ADD --chmod=0444 https://truststore.pki.rds.amazonaws.com/global/global-bundle.pem /etc/ssl/rds-global-bundle.pem
5960

6061
FROM runtime AS api
6162
COPY --from=go-base --chown=nonroot:nonroot /out/memory /var/lib/omnara/memory
@@ -74,6 +75,7 @@ RUN sh /src/chroot-sandbox/install.sh /src/omnara-chroot-sandbox /out
7475

7576
FROM gcr.io/distroless/cc-debian12:nonroot@sha256:9dac0a79194e45a7da0158a9c6da57b217585af0786db3845d1f0ec1a0dd182f AS worker
7677
WORKDIR /app
78+
ADD --chmod=0444 https://truststore.pki.rds.amazonaws.com/global/global-bundle.pem /etc/ssl/rds-global-bundle.pem
7779
COPY --from=file-tools /usr/bin/rg /usr/local/bin/
7880
COPY --from=file-tools /usr/lib/*-linux-gnu/libpcre2-8.so.0 /usr/lib/
7981
COPY --from=go-base --chown=nonroot:nonroot /out/memory /var/lib/omnara/memory

0 commit comments

Comments
 (0)