From ed6d072e64d17d4318f1bbb8e47a907f02b3bf6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Brunner?= Date: Mon, 10 Jun 2024 15:10:10 +0200 Subject: [PATCH] Audit: Fix pycairo install --- Dockerfile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4451bc08050..df62b7a9988 100644 --- a/Dockerfile +++ b/Dockerfile @@ -53,18 +53,18 @@ RUN --mount=type=cache,target=/var/lib/apt/lists \ && apt-get update \ && apt-get install --assume-yes --no-install-recommends "nodejs=${NODE_MAJOR}.*" -# Install some required dev packages -RUN --mount=type=cache,target=/var/lib/apt/lists \ - --mount=type=cache,target=/var/cache,sharing=locked \ - apt-get update \ - && apt-get install --assume-yes --no-install-recommends build-essential python3-dev libpq-dev libproj-dev pkgconf - RUN --mount=type=cache,target=/var/cache,sharing=locked \ --mount=type=cache,target=/root/.cache \ --mount=type=bind,from=poetry,source=/tmp,target=/poetry \ python3 -m pip install --disable-pip-version-check --no-deps --requirement=/poetry/requirements.txt \ && python3 -m compileall /usr/local/lib/python* /usr/lib/python* +# Install some required dev packages +RUN --mount=type=cache,target=/var/lib/apt/lists \ + --mount=type=cache,target=/var/cache,sharing=locked \ + apt-get update \ + && apt-get install --assume-yes --no-install-recommends build-essential python3-dev libpq-dev libproj-dev pkgconf libcairo2-dev + # From c2cwsgiutils CMD ["gunicorn", "--paste=/app/production.ini"]