Install ca-certificates in the runtime layer

This commit is contained in:
Luca P 2022-03-14 11:42:16 +00:00
parent 60be12917e
commit 863599bba3

View file

@ -19,7 +19,7 @@ RUN cargo build --release --bin zero2prod
FROM debian:bullseye-slim AS runtime FROM debian:bullseye-slim AS runtime
WORKDIR /app WORKDIR /app
RUN apt-get update -y \ RUN apt-get update -y \
&& apt-get install -y --no-install-recommends openssl \ && apt-get install -y --no-install-recommends openssl ca-certificates \
# Clean up # Clean up
&& apt-get autoremove -y \ && apt-get autoremove -y \
&& apt-get clean -y \ && apt-get clean -y \