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 ./