From 80d7829cac04ea3da9f08492ba989cd65c10111e Mon Sep 17 00:00:00 2001 From: Naim A <227396+naim94a@users.noreply.github.com> Date: Wed, 14 Aug 2024 22:16:08 +0300 Subject: [PATCH] Docker: adjust build and runtime container (closes #163) --- Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 18a2d66..bbba5d3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM rust:1.80.1-slim +FROM rust:1.80.1-slim-bookworm ARG DEBIAN_FRONTEND=noninteractive RUN apt-get update && apt-get install -y --no-install-recommends --no-install-suggests ca-certificates pkg-config libssl-dev libpq-dev ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse @@ -12,7 +12,7 @@ COPY Cargo.toml /lumen/ RUN --mount=type=cache,target=$CARGO_HOME/registry,target=/lumen/target \ cd /lumen && cargo build --release && cp /lumen/target/release/lumen /root/ -FROM debian:buster-slim +FROM debian:bookworm-slim ARG DEBIAN_FRONTEND=noninteractive RUN apt-get update && apt-get install -y --no-install-recommends --no-install-suggests openssl libpq5 && \ sed -i -e 's,\[ v3_req \],\[ v3_req \]\nextendedKeyUsage = serverAuth,' /etc/ssl/openssl.cnf @@ -26,5 +26,4 @@ COPY --from=0 /root/lumen /usr/bin/lumen COPY config-example.toml docker-init.sh /lumen/ RUN chmod a+x /lumen/docker-init.sh && chmod a+x /usr/bin/lumen WORKDIR /lumen -STOPSIGNAL SIGINT CMD /lumen/docker-init.sh