From df5b0256f88fdaf9d4874dc9c66d7daf0d3d7377 Mon Sep 17 00:00:00 2001 From: Toni Barth Date: Tue, 5 Mar 2024 08:09:49 +0100 Subject: [PATCH] fix Dockerfile --- Dockerfile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 624a65d..5d4235e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ FROM rust:1.76-slim-bookworm as build # create a new empty shell project -RUN apt -y install libssl-dev && \ +RUN apt-get update && apt-get -y install libssl-dev pkg-config && \ USER=root cargo new --bin hitster WORKDIR /hitster @@ -25,6 +25,13 @@ RUN cargo build --release # our final base FROM debian:bookworm-slim +# prepare the OS + +RUN DEBIAN_FRONTEND=noninteractive apt-get update && \ + apt-get -y install --no-install-recommends libssl-dev && \ + apt-get clean && \ + rm -rf /var/lib/apt/lists/* + # copy the build artifact from the build stage COPY --from=build /hitster/target/release/hitster-server ./hitster