Update docker debian base image.

This commit is contained in:
Quintus Leung
2025-06-21 19:12:59 +01:00
parent 4c70e739d4
commit 8a35d18a95
+3 -3
View File
@@ -1,7 +1,7 @@
# Stage 1: Build the application
# Use a specific Rust version for reproducibility, slim variant for smaller base
FROM rust:1.87-slim-bullseye AS builder
LABEL maintainer="Gemini Code Assist"
FROM rust:1.87-slim-bookworm AS builder
LABEL maintainer="Quintus Leung"
# Install system dependencies if needed by any crates (e.g., libssl-dev, pkg-config for TLS/crypto)
# RUN apt-get update && apt-get install -y libssl-dev pkg-config
@@ -24,7 +24,7 @@ COPY src ./src
RUN cargo build --release --locked
# Stage 2: Create the final lightweight image
FROM debian:bullseye-slim AS runner
FROM debian:bookworm-slim AS runner
# Arguments for user/group creation, can be overridden at build time
ARG UID=1001