1 parent
2c98b8f925
commit
e4aa787e06
27 files changed
+179
-110
No files matched your search
+3
-3
@@ -1,11 +1,11 @@
|
||||
FROM rust:1.88-bookworm AS builder
|
||||
FROM rust:1.99.1-trixie AS builder
|
||||
WORKDIR /build
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends pkg-config libssl-dev ca-certificates && rm -rf /var/lib/apt/lists/*
|
||||
COPY . .
|
||||
RUN cargo generate-lockfile && cargo build --release --locked
|
||||
|
||||
FROM debian:bookworm-slim
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates libssl3 && rm -rf /var/lib/apt/lists/*
|
||||
FROM debian:trixie-slim
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates libssl3t64 && rm -rf /var/lib/apt/lists/*
|
||||
RUN useradd --system --uid 10001 --create-home --home-dir /var/lib/rustbox rustbox
|
||||
COPY --from=builder /build/target/release/rustbox /usr/local/bin/rustbox
|
||||
USER rustbox
|
||||
|
||||
Reference in new issue
Block a user