Updated rust and fixed checks.
Signed-off-by: Pavel Kirilin <win10@list.ru>
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user