-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
12 additions
and
249 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
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,14 +1,19 @@ | ||
ARG PYTHON_VERSION=3.12 | ||
# supply empty build-arg to use local image | ||
# --build-arg TRANSFORMATION_IMAGE_SOURCE="" | ||
ARG TRANSFORMATION_IMAGE_SOURCE=ghcr.io/ | ||
|
||
FROM ${TRANSFORMATION_IMAGE_SOURCE}geodetischeinfrastructuur/transformations:latest as transformations | ||
|
||
FROM ghcr.io/astral-sh/uv:python${PYTHON_VERSION}-bookworm-slim | ||
|
||
ARG PYTHON_VERSION | ||
WORKDIR /app | ||
COPY pyproject.toml uv.lock validate.py .python-version Z001_ETRS89andRDNAP.txt ./ | ||
COPY pyproject.toml uv.lock validate.py .python-version validate_ETRS89andRDNAP.txt ./ | ||
RUN uv sync | ||
|
||
# COPY the transformation grids, the modified proj.db and all the other proj files, so we do not have to run configure-proj.sh | ||
COPY --from=ghcr.io/geodetischeinfrastructuur/transformations:latest /usr/share/proj/ "/app/.venv/lib/python${PYTHON_VERSION}/site-packages/pyproj/proj_dir/share/proj" | ||
COPY --from=transformations /usr/share/proj/ "/app/.venv/lib/python${PYTHON_VERSION}/site-packages/pyproj/proj_dir/share/proj" | ||
|
||
ENV PATH="/app/.venv/bin:$PATH" | ||
ENV PROJ_DATA="/app/.venv/lib/python${PYTHON_VERSION}/site-packages/pyproj/proj_dir/share/proj" |
Oops, something went wrong.