From 90a6a038908f87967435c24ae3dcae50d7d3cd47 Mon Sep 17 00:00:00 2001 From: Denis Nutiu Date: Fri, 3 Jan 2025 23:03:56 +0200 Subject: [PATCH] reduce Docker image size --- bot/docker/Dockerfile | 4 +++- scrapper/docker/Dockerfile | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/bot/docker/Dockerfile b/bot/docker/Dockerfile index f107f3b..dda8143 100644 --- a/bot/docker/Dockerfile +++ b/bot/docker/Dockerfile @@ -23,9 +23,11 @@ COPY . . RUN cargo build --profile release # Run the project -FROM rust:1.83.0-bookworm AS runner +FROM debian:bookworm-slim AS runner WORKDIR /app +RUN apt-get update && apt-get -y install libssl3 + COPY --from=builder /app/target/release/bot /app/bot ENTRYPOINT ["/app/bot"] \ No newline at end of file diff --git a/scrapper/docker/Dockerfile b/scrapper/docker/Dockerfile index fb55fb5..6cdde6c 100644 --- a/scrapper/docker/Dockerfile +++ b/scrapper/docker/Dockerfile @@ -23,9 +23,11 @@ COPY . . RUN cargo build --profile release # Run the project -FROM rust:1.83.0-bookworm AS runner +FROM debian:bookworm-slim AS runner WORKDIR /app +RUN apt-get update && apt-get -y install libssl3 + COPY --from=builder /app/target/release/scrapper /app/scrapper ENTRYPOINT ["/app/scrapper"] \ No newline at end of file