From 607a37aa55434d67fea2981723a7b22857e8b97a Mon Sep 17 00:00:00 2001 From: evannregnault Date: Wed, 28 Jun 2023 13:15:28 +0200 Subject: [PATCH] Smaller Image --- Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 51042fc..a0240f4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,9 +14,12 @@ RUN cargo chef cook --release --recipe-path recipe.json COPY . . RUN cargo build --release --bin obsessed-yanqing -FROM rust:slim-bullseye +FROM bitnami/minideb:bullseye RUN apt-get update RUN apt-get install ca-certificates -y +RUN apt-get clean autoclean +RUN apt-get autoremove --yes +RUN rm -rf /var/lib/{apt,dpkg,cache,log}/ WORKDIR /root/ COPY --from=builder /app/target/release/obsessed-yanqing . CMD ["./obsessed-yanqing"] \ No newline at end of file