Use explicit Python 3.11 for all-in-one build
This commit is contained in:
@@ -68,7 +68,9 @@ def test_unraid_all_in_one_runtime_starts_embedded_postgis_backend_and_nginx() -
|
|||||||
dockerignore = (ROOT / ".dockerignore").read_text(encoding="utf-8")
|
dockerignore = (ROOT / ".dockerignore").read_text(encoding="utf-8")
|
||||||
|
|
||||||
assert "FROM postgis/postgis:16-3.5 AS runtime" in dockerfile
|
assert "FROM postgis/postgis:16-3.5 AS runtime" in dockerfile
|
||||||
assert "ln -sf python3.11 /usr/bin/python3" in dockerfile
|
assert "ln -sf /usr/bin/python3.11 /usr/local/bin/python3" in dockerfile
|
||||||
|
assert "ln -sf /usr/bin/python3.11 /usr/bin/python3" in dockerfile
|
||||||
|
assert "/usr/bin/python3.11 -m venv /opt/geointel/venv" in dockerfile
|
||||||
assert "python3-pip" not in dockerfile
|
assert "python3-pip" not in dockerfile
|
||||||
assert "python3-venv" not in dockerfile
|
assert "python3-venv" not in dockerfile
|
||||||
assert "COPY --from=frontend-build /frontend/dist/ /usr/share/nginx/html/" in dockerfile
|
assert "COPY --from=frontend-build /frontend/dist/ /usr/share/nginx/html/" in dockerfile
|
||||||
|
|||||||
@@ -28,7 +28,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|||||||
libproj-dev \
|
libproj-dev \
|
||||||
nginx \
|
nginx \
|
||||||
proj-bin \
|
proj-bin \
|
||||||
&& ln -sf python3.11 /usr/bin/python3 \
|
&& ln -sf /usr/bin/python3.11 /usr/local/bin/python3 \
|
||||||
|
&& ln -sf /usr/bin/python3.11 /usr/bin/python3 \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
@@ -39,7 +40,7 @@ COPY deploy/unraid/nginx-all-in-one.conf /etc/nginx/conf.d/default.conf
|
|||||||
COPY deploy/unraid/all-in-one-start.sh /usr/local/bin/geointel-all-in-one-start
|
COPY deploy/unraid/all-in-one-start.sh /usr/local/bin/geointel-all-in-one-start
|
||||||
COPY --from=frontend-build /frontend/dist/ /usr/share/nginx/html/
|
COPY --from=frontend-build /frontend/dist/ /usr/share/nginx/html/
|
||||||
|
|
||||||
RUN python3 -m venv /opt/geointel/venv \
|
RUN /usr/bin/python3.11 -m venv /opt/geointel/venv \
|
||||||
&& pip install --no-cache-dir --upgrade pip setuptools \
|
&& pip install --no-cache-dir --upgrade pip setuptools \
|
||||||
&& pip install --no-cache-dir ".[gis]" \
|
&& pip install --no-cache-dir ".[gis]" \
|
||||||
&& python scripts/gis_import_smoke.py \
|
&& python scripts/gis_import_smoke.py \
|
||||||
|
|||||||
Reference in New Issue
Block a user