-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a venv to fix build of QGIS master
- Loading branch information
Showing
3 changed files
with
13 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
c2cciutils[checks,publish]==1.7.1 | ||
c2cciutils[checks,publish]==1.7.2 | ||
pre-commit==4.0.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,12 +8,22 @@ LABEL maintainer Camptocamp "[email protected]" | |
# Print commands and their arguments as they are executed. | ||
SHELL ["/bin/bash", "-o", "pipefail", "-cux"] | ||
|
||
RUN --mount=type=cache,target=/var/lib/apt/lists \ | ||
--mount=type=cache,target=/var/cache,sharing=locked \ | ||
apt-get update \ | ||
&& apt-get upgrade --assume-yes \ | ||
&& apt-get install --assume-yes --no-install-recommends python3-venv \ | ||
&& python3 -m venv --system-site-packages /venv | ||
|
||
ENV PATH=/venv/bin:$PATH | ||
|
||
# Used to convert the locked packages by poetry to pip requirements format | ||
# We don't directly use `poetry install` because it force to use a virtual environment. | ||
FROM base-all AS poetry | ||
|
||
# Install Poetry | ||
WORKDIR /tmp | ||
|
||
COPY requirements.txt ./ | ||
RUN --mount=type=cache,target=/root/.cache \ | ||
python3 -m pip install --disable-pip-version-check --requirement=requirements.txt | ||
|