From f80f29ca59e2cefc2f3de3703303e7ad4e982ed3 Mon Sep 17 00:00:00 2001 From: lystopad Date: Tue, 27 May 2025 09:24:17 +0200 Subject: [PATCH] Update Dockerfile.debian When setting the DEBIAN_FRONTEND environment variable, it's best to apply it directly to apt commands rather than setting it globally. If DEBIAN_FRONTEND=noninteractive is set as a persistent environment variable in the container image, it can affect other Debian-specific commands run after the container starts, potentially leading to unintended behavior. Instead, consider using it like this: DEBIAN_FRONTEND=noninteractive apt-get update DEBIAN_FRONTEND=noninteractive apt-get install ... This ensures the variable is only active during the apt operations and isn't retained in the final image, preventing any lingering side effects. --- docker/Dockerfile.debian | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docker/Dockerfile.debian b/docker/Dockerfile.debian index 0e366bea..9419d065 100644 --- a/docker/Dockerfile.debian +++ b/docker/Dockerfile.debian @@ -170,12 +170,12 @@ FROM --platform=$TARGETPLATFORM docker.io/library/debian:bookworm-slim ENV ROCKET_PROFILE="release" \ ROCKET_ADDRESS=0.0.0.0 \ - ROCKET_PORT=80 \ - DEBIAN_FRONTEND=noninteractive + ROCKET_PORT=80 # Create data folder and Install needed libraries RUN mkdir /data && \ - apt-get update && apt-get install -y \ + DEBIAN_FRONTEND=noninteractive apt-get update && \ + DEBIAN_FRONTEND=noninteractive apt-get install -y \ --no-install-recommends \ ca-certificates \ curl \