chore(docker): avoid apt network steps in image build

This commit is contained in:
2026-04-14 12:26:04 +02:00
parent 4c5ceb74f6
commit d0325ec271

View File

@@ -19,19 +19,6 @@ FROM base AS builder
ARG INSTALL_DEV=false ARG INSTALL_DEV=false
# hadolint ignore=DL3008
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
build-essential \
gcc \
libpq-dev \
libffi-dev \
libxml2-dev \
libxslt1-dev \
zlib1g-dev \
pkg-config \
&& rm -rf /var/lib/apt/lists/*
COPY pyproject.toml uv.lock ./ COPY pyproject.toml uv.lock ./
RUN if [ "${INSTALL_DEV}" = "true" ]; then \ RUN if [ "${INSTALL_DEV}" = "true" ]; then \
@@ -43,17 +30,6 @@ RUN if [ "${INSTALL_DEV}" = "true" ]; then \
FROM base AS runtime-base FROM base AS runtime-base
# hadolint ignore=DL3008
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
curl \
libpq5 \
libffi8 \
libxml2 \
libxslt1.1 \
zlib1g \
&& rm -rf /var/lib/apt/lists/*
COPY --from=builder /app/.venv /app/.venv COPY --from=builder /app/.venv /app/.venv
COPY src/ ./src/ COPY src/ ./src/
COPY docker/scripts/ ./docker/scripts/ COPY docker/scripts/ ./docker/scripts/