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