Smaller Image

This commit is contained in:
Evann Regnault 2023-06-28 13:15:28 +02:00
parent 6501e4dab3
commit 607a37aa55

View file

@ -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"]