# Reuse the worker's pinned CUDA/PyTorch runtime; model assets stay outside the image. ARG BASE_IMAGE=ndc-mission-core-m48t-upstream-parity:1.9.4-cu130 FROM ${BASE_IMAGE} LABEL com.nodedc.product="mission-core" com.nodedc.stack="urban-mapping" \ com.nodedc.role="offline-infrastructure-detector" com.nodedc.managed-by="compose" ENV PYTHONUNBUFFERED=1 PYTHONDONTWRITEBYTECODE=1 OMP_NUM_THREADS=4 \ MAX_JOBS=4 TORCH_CUDA_ARCH_LIST=8.9 HF_HUB_OFFLINE=1 TRANSFORMERS_OFFLINE=1 RUN python3 -m pip uninstall --break-system-packages -y rfdetr && python3 -m pip install --break-system-packages --no-cache-dir \ gsplat==1.5.3 plyfile==1.1.3 pillow==11.3.0 opencv-python-headless==4.11.0.86 \ transformers==4.44.2 shapely==2.1.2 ninja==1.13.0 rasterio==1.4.3 ezdxf==1.4.3 WORKDIR /app COPY *.py /app/ ENTRYPOINT ["python3", "-B", "/app/mapping.py"]