File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,14 +3,19 @@ FROM osgeo/grass-gis:releasebranch_8_4-alpine
33ARG ADDON_NAME
44ARG GITHUB_REPOSITORY
55
6+ RUN apk add gcc make python3-dev musl-dev linux-headers
7+
68WORKDIR /src
79COPY . /src
810
9- RUN apk add gcc make python3-dev musl-dev linux-headers
10-
1111# create environment to install requirements
12- RUN python -m venv addon-env
12+ RUN python -m venv --system-site-packages addon-env
1313ENV PATH="/src/addon-env/bin:$PATH"
14+ # --system-site-packages only works for active virtual environment.
15+ # To use paths, below hack is needed..
16+ RUN export VERSION=$(python -c \
17+ "import sys;print(f\" python{sys.version_info.major}.{sys.version_info.minor}\" )" ); \
18+ echo "/usr/lib/$VERSION/site-packages/" > /src/addon-env/lib/$VERSION/site-packages/system-packages.pth
1419RUN test -e requirements.txt && pip3 install -r requirements.txt || echo "No requirements.txt"
1520
1621# Compile GRASS GIS addon
You can’t perform that action at this time.
0 commit comments