From 87a4a94aa641700d7c752917942f66782ff2300f Mon Sep 17 00:00:00 2001 From: Quentin Gliech Date: Tue, 17 Dec 2024 17:37:42 +0100 Subject: [PATCH] Also use non-slim image in the first stage --- docker/Dockerfile | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index c0fbefe5d8b..ada93d7388d 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -28,16 +28,7 @@ ARG POETRY_VERSION=1.8.3 ### ### This stage is platform-agnostic, so we can use the build platform in case of cross-compilation. ### -FROM --platform=$BUILDPLATFORM ghcr.io/astral-sh/uv:python${PYTHON_VERSION}-bookworm-slim AS requirements - -# Tell apt to keep downloaded package files, as we're using cache mounts. -RUN rm -f /etc/apt/apt.conf.d/docker-clean; echo 'Binary::apt::APT::Keep-Downloaded-Packages "true";' > /etc/apt/apt.conf.d/keep-cache - -RUN \ - --mount=type=cache,target=/var/cache/apt,sharing=locked \ - --mount=type=cache,target=/var/lib/apt,sharing=locked \ - apt-get update -qq && apt-get install -yqq \ - build-essential curl git libffi-dev libssl-dev pkg-config +FROM --platform=$BUILDPLATFORM ghcr.io/astral-sh/uv:python${PYTHON_VERSION}-bookworm AS requirements WORKDIR /synapse