Dockerfile.fdb buster to trixie (#2275)
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
FROM debian:buster-slim AS chef
|
||||
FROM debian:trixie-slim AS chef
|
||||
RUN apt-get update && \
|
||||
export DEBIAN_FRONTEND=noninteractive && \
|
||||
apt-get install -yq \
|
||||
build-essential \
|
||||
cmake \
|
||||
clang \
|
||||
clang \
|
||||
curl \
|
||||
protobuf-compiler
|
||||
protobuf-compiler \
|
||||
adduser
|
||||
ENV RUSTUP_HOME=/opt/rust/rustup \
|
||||
PATH=/home/root/.cargo/bin:/opt/rust/cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
||||
RUN curl https://sh.rustup.rs -sSf | \
|
||||
@@ -28,7 +29,7 @@ COPY resources/ resources/
|
||||
COPY tests/ tests/
|
||||
RUN cargo chef prepare --recipe-path recipe.json
|
||||
|
||||
FROM chef AS builder
|
||||
FROM chef AS builder
|
||||
COPY --from=planner /app/recipe.json recipe.json
|
||||
RUN cargo chef cook --release --recipe-path recipe.json
|
||||
COPY Cargo.toml .
|
||||
@@ -38,7 +39,7 @@ COPY resources/ resources/
|
||||
COPY tests/ tests/
|
||||
RUN cargo build --manifest-path=crates/main/Cargo.toml --no-default-features --features foundationdb --release
|
||||
|
||||
FROM debian:buster-slim AS runtime
|
||||
FROM debian:trixie-slim AS runtime
|
||||
|
||||
COPY --from=builder /app/target/release/stalwart /usr/local/bin/stalwart
|
||||
RUN apt-get update -y && apt-get install -yq ca-certificates
|
||||
|
||||
Reference in New Issue
Block a user