Update poise + Even smaller image

This commit is contained in:
Evann Regnault 2023-06-28 14:08:09 +02:00
parent 607a37aa55
commit 42c240ec2c
2 changed files with 4 additions and 8 deletions

View file

@ -7,7 +7,7 @@ license = "MIT"
[dependencies]
serenity = { version="0.11.5", features=["builder", "client", "gateway", "model", "utils", "collector"], default-features = false }
poise = { version="0.5.2" }
poise = { version="0.5.5" }
serde_json = "1.0.95"
serde_derive = "1.0.159"
tokio = { version="1.28.0", features = ["macros", "rt-multi-thread"] }

View file

@ -1,4 +1,4 @@
FROM rust:slim-bullseye AS base
FROM rust:slim-bookworm AS base
RUN apt-get update
RUN apt-get install libssl-dev pkg-config -y
RUN cargo install cargo-chef
@ -14,12 +14,8 @@ RUN cargo chef cook --release --recipe-path recipe.json
COPY . .
RUN cargo build --release --bin obsessed-yanqing
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}/
FROM debian:bookworm-slim
RUN apt-get update && apt-get install ca-certificates libssl3 -y && apt-get clean autoclean && apt-get autoremove --yes && rm -rf /var/lib/{apt,dpkg,cache,log}/
WORKDIR /root/
COPY --from=builder /app/target/release/obsessed-yanqing .
CMD ["./obsessed-yanqing"]