From 0cbeef1e493b22286bcfad5aafc0ec8c890d1f28 Mon Sep 17 00:00:00 2001 From: Will Nilges Date: Sun, 24 Dec 2023 10:54:53 -0500 Subject: [PATCH] Add openssl and update Docker image --- api/Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/api/Dockerfile b/api/Dockerfile index 4b611e3f..3b78652c 100644 --- a/api/Dockerfile +++ b/api/Dockerfile @@ -1,6 +1,6 @@ # This dockerfile builds the API and runs it on a minimal container with the Datastore adaptor -FROM rust:latest as builder +FROM rust:bookworm as builder # Install CA Certs for Hyper RUN apt-get install -y --no-install-recommends ca-certificates @@ -14,7 +14,9 @@ RUN --mount=type=cache,target=/usr/local/cargo,from=rust:latest,source=/usr/loca cargo build --release --features datastore-adaptor && mv ./target/release/crabfit-api ./api # Runtime image -FROM debian:bullseye-slim +FROM debian:bookworm-slim + +RUN apt-get update; apt-get install -y openssl # Run as "app" user RUN useradd -ms /bin/bash app