mirror of
https://github.com/stalwartlabs/mail-server.git
synced 2025-12-24 08:21:25 +08:00
Dockerfile: Update to debian 13 (#2099)
This commit is contained in:
parent
054d07878d
commit
292e371b07
2 changed files with 4 additions and 4 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
# Stalwart Dockerfile
|
# Stalwart Dockerfile
|
||||||
# Credits: https://github.com/33KK
|
# Credits: https://github.com/33KK
|
||||||
|
|
||||||
FROM --platform=$BUILDPLATFORM docker.io/lukemathwalker/cargo-chef:latest-rust-slim-bookworm AS chef
|
FROM --platform=$BUILDPLATFORM docker.io/lukemathwalker/cargo-chef:latest-rust-slim-trixie AS chef
|
||||||
WORKDIR /build
|
WORKDIR /build
|
||||||
|
|
||||||
FROM --platform=$BUILDPLATFORM chef AS planner
|
FROM --platform=$BUILDPLATFORM chef AS planner
|
||||||
|
|
@ -28,7 +28,7 @@ RUN RUSTFLAGS="$(cat /flags.txt)" cargo build --target "$(cat /target.txt)" --re
|
||||||
RUN RUSTFLAGS="$(cat /flags.txt)" cargo build --target "$(cat /target.txt)" --release -p stalwart-cli
|
RUN RUSTFLAGS="$(cat /flags.txt)" cargo build --target "$(cat /target.txt)" --release -p stalwart-cli
|
||||||
RUN mv "/build/target/$(cat /target.txt)/release" "/output"
|
RUN mv "/build/target/$(cat /target.txt)/release" "/output"
|
||||||
|
|
||||||
FROM docker.io/debian:bookworm-slim
|
FROM docker.io/debian:trixie-slim
|
||||||
WORKDIR /opt/stalwart
|
WORKDIR /opt/stalwart
|
||||||
RUN export DEBIAN_FRONTEND=noninteractive && \
|
RUN export DEBIAN_FRONTEND=noninteractive && \
|
||||||
apt-get update && \
|
apt-get update && \
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
# *****************
|
# *****************
|
||||||
# Base image for planner & builder
|
# Base image for planner & builder
|
||||||
# *****************
|
# *****************
|
||||||
FROM --platform=$BUILDPLATFORM rust:slim-bookworm AS base
|
FROM --platform=$BUILDPLATFORM rust:slim-trixie AS base
|
||||||
|
|
||||||
ENV DEBIAN_FRONTEND="noninteractive" \
|
ENV DEBIAN_FRONTEND="noninteractive" \
|
||||||
BINSTALL_DISABLE_TELEMETRY=true \
|
BINSTALL_DISABLE_TELEMETRY=true \
|
||||||
|
|
@ -138,7 +138,7 @@ COPY --from=builder /app/artifact /
|
||||||
# *****************
|
# *****************
|
||||||
# Runtime image for GNU targets
|
# Runtime image for GNU targets
|
||||||
# *****************
|
# *****************
|
||||||
FROM --platform=$TARGETPLATFORM docker.io/library/debian:bookworm-slim AS gnu
|
FROM --platform=$TARGETPLATFORM docker.io/library/debian:trixie-slim AS gnu
|
||||||
WORKDIR /opt/stalwart
|
WORKDIR /opt/stalwart
|
||||||
RUN export DEBIAN_FRONTEND=noninteractive && \
|
RUN export DEBIAN_FRONTEND=noninteractive && \
|
||||||
apt-get update && \
|
apt-get update && \
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue