Smaller Image
This commit is contained in:
parent
6501e4dab3
commit
607a37aa55
1 changed files with 4 additions and 1 deletions
|
@ -14,9 +14,12 @@ RUN cargo chef cook --release --recipe-path recipe.json
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN cargo build --release --bin obsessed-yanqing
|
RUN cargo build --release --bin obsessed-yanqing
|
||||||
|
|
||||||
FROM rust:slim-bullseye
|
FROM bitnami/minideb:bullseye
|
||||||
RUN apt-get update
|
RUN apt-get update
|
||||||
RUN apt-get install ca-certificates -y
|
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/
|
WORKDIR /root/
|
||||||
COPY --from=builder /app/target/release/obsessed-yanqing .
|
COPY --from=builder /app/target/release/obsessed-yanqing .
|
||||||
CMD ["./obsessed-yanqing"]
|
CMD ["./obsessed-yanqing"]
|
Loading…
Reference in a new issue