From c33afeff76ebfd86261df93afbabb76fc2797b45 Mon Sep 17 00:00:00 2001 From: cmaddox5 Date: Fri, 6 Sep 2024 13:13:09 -0400 Subject: [PATCH] Install certs in container. --- Dockerfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Dockerfile b/Dockerfile index abdea374..10f9400d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -27,6 +27,10 @@ FROM elixir-builder as app-builder WORKDIR /root +RUN curl https://truststore.pki.rds.amazonaws.com/global/global-bundle.pem \ + -o aws-cert-bundle.pem +RUN echo "d72191eaa5d48fe2b6e044a0ae0b0e9f35e325b34b1ecab6ffe11d490d5cdb8f aws-cert-bundle.pem" | sha256sum -c - + # add frontend assets compiled in node container, required by phx.digest COPY --from=assets-builder /root/priv/static ./priv/static @@ -46,6 +50,7 @@ ENV MIX_ENV=prod TERM=xterm LANG="C.UTF-8" PORT=4000 # add frontend assets with manifests from app build container COPY --from=app-builder /root/priv/static ./priv/static COPY --from=app-builder /root/_build/prod/rel/signs_ui . +COPY --from=app-builder /root/aws-cert-bundle.pem ./priv/aws-cert-bundle.pem RUN mkdir gtfs # Healthcheck