mirror of
https://github.com/gadgethd/ukmesh.git
synced 2026-09-01 17:08:17 +00:00
Bumps [osgeo/gdal](https://github.com/OSGeo/gdal) from ubuntu-full-3.13.2 to ubuntu-full-3.13.3. - [Release notes](https://github.com/OSGeo/gdal/releases) - [Changelog](https://github.com/OSGeo/gdal/blob/master/NEWS.md) - [Commits](https://github.com/OSGeo/gdal/compare/v3.13.2...v3.13.3) --- updated-dependencies: - dependency-name: osgeo/gdal dependency-version: ubuntu-full-3.13.3 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
29 lines
1.1 KiB
Docker
29 lines
1.1 KiB
Docker
FROM ghcr.io/osgeo/gdal:ubuntu-full-3.13.3@sha256:2dd0f81ef927ff4c3d4dbe4f73c029dc86d4073974c0564f8e196f6e1412e2e0
|
|
|
|
WORKDIR /app
|
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
python3-pip python3-venv python3-shapely \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Venv with system-site-packages so GDAL Python bindings + numpy are inherited
|
|
RUN python3 -m venv /opt/venv --system-site-packages
|
|
ENV PATH="/opt/venv/bin:$PATH"
|
|
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir --require-hashes -r requirements.txt
|
|
|
|
COPY worker.py worker_metrics.py link_queue_v3.py viewshed_queue_v2.py queue_admin.py backfill_profiles.py dry_run_coverage.py uk_mainland.json ./
|
|
COPY rf ./rf
|
|
COPY tests ./tests
|
|
|
|
RUN useradd --system --uid 10001 --home-dir /app meshcore \
|
|
&& mkdir -p /data/srtm \
|
|
&& chown -R meshcore:meshcore /app /data/srtm /opt/venv
|
|
USER 10001:10001
|
|
ARG SOURCE_REVISION=unknown
|
|
LABEL org.opencontainers.image.revision="${SOURCE_REVISION}" \
|
|
org.opencontainers.image.source="https://github.com/gadgethd/ukmesh"
|
|
EXPOSE 9091
|
|
CMD ["python3", "-u", "worker.py"]
|