Skip to content

Commit

Permalink
Audit: Fix pycairo install
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Jun 10, 2024
1 parent e738ba6 commit ed6d072
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit ed6d072

Please sign in to comment.