FROM python:3.10-slim WORKDIR /app # Install system dependencies for GDAL RUN apt-get update && apt-get install -y \ gdal-bin \ libgdal-dev \ libgeos-dev \ libproj-dev \ && rm -rf /var/lib/apt/lists/* # Set GDAL environment variables ENV GDAL_CONFIG=/usr/bin/gdal-config # Copy requirements first for caching COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Copy the rest of the application COPY . . # Expose Streamlit port EXPOSE 7860 # Run Streamlit CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0", "--server.headless=true"]