Skip to content

Commit 90e5875

Browse files
committed
fix(container): use noninteractive debconf
1 parent 4edf2a6 commit 90e5875

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

Containerfile

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,12 @@
22

33
FROM python:3.12-slim AS builder
44

5+
ARG DEBIAN_FRONTEND=noninteractive
6+
57
ENV PYTHONDONTWRITEBYTECODE=1 \
6-
PYTHONUNBUFFERED=1
8+
PYTHONUNBUFFERED=1 \
9+
PIP_ROOT_USER_ACTION=ignore \
10+
PIP_DISABLE_PIP_VERSION_CHECK=1
711

812
WORKDIR /app
913

@@ -22,8 +26,12 @@ RUN pip install --no-cache-dir --upgrade pip \
2226

2327
FROM python:3.12-slim AS runtime
2428

29+
ARG DEBIAN_FRONTEND=noninteractive
30+
2531
ENV PYTHONDONTWRITEBYTECODE=1 \
26-
PYTHONUNBUFFERED=1
32+
PYTHONUNBUFFERED=1 \
33+
PIP_ROOT_USER_ACTION=ignore \
34+
PIP_DISABLE_PIP_VERSION_CHECK=1
2735

2836
# hadolint ignore=DL3008
2937
RUN apt-get update \

0 commit comments

Comments
 (0)