Updated rust and fixed checks.

Signed-off-by: Pavel Kirilin <win10@list.ru>
This commit is contained in:
2024-07-26 18:06:18 +02:00
parent 8881fb302a
commit 6c3cdffdc0
2 changed files with 3 additions and 7 deletions

View File

@ -1,4 +1,4 @@
FROM rust:1.72-buster as builder
FROM rust:1.80-bookworm AS builder
WORKDIR /app
COPY Cargo.toml Cargo.lock askama.toml ./
@ -7,7 +7,7 @@ COPY static ./static
# Build binary in release mode.
RUN cargo build --release --all-features
FROM debian:bullseye-20230109-slim as base
FROM debian:bookworm AS base
WORKDIR /
@ -22,7 +22,7 @@ COPY --from=builder /app/target/release/s3bot /usr/local/bin/
ENTRYPOINT ["/usr/local/bin/s3bot"]
FROM base as rootless
FROM base AS rootless
# Create a user and make the image rootless. So no one
# can escalate privileges even if they have access to