From 518e89c2bd30706fcdb21de66457f8f776182378 Mon Sep 17 00:00:00 2001 From: tdurieux Date: Sun, 22 Jan 2023 21:00:31 +0100 Subject: [PATCH] chore: update Dockerfile to reduce the image size --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9bcf1f3..3b558ae 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,7 @@ COPY . /app USER root RUN apt-get update -RUN apt-get install libssl-dev pkg-config -y +RUN apt-get install --no-install-recommends libssl-dev pkg-config -y && rm -rf /var/lib/apt/lists/*; RUN cargo build --release # Copy the binary into a new container for a smaller docker image @@ -15,7 +15,7 @@ FROM debian:buster-slim WORKDIR /etc/lust RUN apt-get update \ - && apt-get install -y ca-certificates libssl-dev pkg-config \ + && apt-get install --no-install-recommends -y ca-certificates libssl-dev pkg-config \ && rm -rf /var/lib/apt/lists/* COPY --from=build /app/target/release/lust ./