Spaces:
Sleeping
Sleeping
File size: 654 Bytes
a092bff 139858b a092bff 139858b a092bff | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | FROM python:3.12-slim-bookworm
WORKDIR /app
# Rasterio needs GDAL/PROJ/GEOS at runtime; slim images omit them. Fail the image build if imports break.
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
gdal-bin \
libgdal-dev \
&& rm -rf /var/lib/apt/lists/*
COPY pyproject.toml README.md ./
COPY src ./src
RUN pip install --no-cache-dir --upgrade pip setuptools wheel \
&& pip install --no-cache-dir . \
&& python -c "import rasterio, rasterio.warp; import pystac_client; print('s2 imports ok')"
EXPOSE 7860
CMD ["uvicorn", "pro_materialization_service.main:app", "--host", "0.0.0.0", "--port", "7860"]
|