Skip to content

Commit

Permalink
Docker: adjust build and runtime container (closes #163)
Browse files Browse the repository at this point in the history
  • Loading branch information
naim94a committed Aug 14, 2024
1 parent 08cee3b commit 80d7829
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand All @@ -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

0 comments on commit 80d7829

Please sign in to comment.