Spaces:
Runtime error
Runtime error
| # Use Ubuntu base so we can apt-get system libs required by GDAL/PROJ/GEOS | |
| FROM ubuntu:22.04 | |
| ENV DEBIAN_FRONTEND=noninteractive | |
| ARG PYTHON_VERSION=3.10 | |
| # Install system deps for GDAL/proj/geos and build essentials | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| build-essential \ | |
| ca-certificates \ | |
| wget \ | |
| curl \ | |
| git \ | |
| python3 \ | |
| python3-pip \ | |
| python3-dev \ | |
| gdal-bin \ | |
| libgdal-dev \ | |
| libgeos-dev \ | |
| libproj-dev \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Upgrade pip | |
| RUN python3 -m pip install --upgrade pip setuptools wheel | |
| # Copy requirements first for layer caching | |
| COPY requirements.txt /tmp/requirements.txt | |
| RUN pip install --no-cache-dir -r /tmp/requirements.txt | |
| # Copy application code | |
| WORKDIR /app | |
| COPY . /app | |
| # Ensure start script executable | |
| RUN chmod +x /app/start.sh | |
| ENV PORT=7860 | |
| EXPOSE 7860 | |
| CMD ["/app/start.sh"] | |