Update poise + Even smaller image
This commit is contained in:
parent
607a37aa55
commit
42c240ec2c
2 changed files with 4 additions and 8 deletions
|
@ -7,7 +7,7 @@ license = "MIT"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
serenity = { version="0.11.5", features=["builder", "client", "gateway", "model", "utils", "collector"], default-features = false }
|
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_json = "1.0.95"
|
||||||
serde_derive = "1.0.159"
|
serde_derive = "1.0.159"
|
||||||
tokio = { version="1.28.0", features = ["macros", "rt-multi-thread"] }
|
tokio = { version="1.28.0", features = ["macros", "rt-multi-thread"] }
|
||||||
|
|
10
Dockerfile
10
Dockerfile
|
@ -1,4 +1,4 @@
|
||||||
FROM rust:slim-bullseye AS base
|
FROM rust:slim-bookworm AS base
|
||||||
RUN apt-get update
|
RUN apt-get update
|
||||||
RUN apt-get install libssl-dev pkg-config -y
|
RUN apt-get install libssl-dev pkg-config -y
|
||||||
RUN cargo install cargo-chef
|
RUN cargo install cargo-chef
|
||||||
|
@ -14,12 +14,8 @@ 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 bitnami/minideb:bullseye
|
FROM debian:bookworm-slim
|
||||||
RUN apt-get update
|
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}/
|
||||||
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