Spaces:
Runtime error
Runtime error
Download Dockerfile from rajkhanke/Geospatial_analysis: direct link, hf CLI and curl.
- Browser
- Download file 381 Bytes
-
https://huggingface.co/spaces/rajkhanke/Geospatial_analysis/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/rajkhanke/Geospatial_analysis/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/rajkhanke/Geospatial_analysis/resolve/main/Dockerfile
381 Bytes
| # Use lightweight Python image | |
| FROM python:3.10-slim | |
| # Set environment variables | |
| ENV PYTHONDONTWRITEBYTECODE=1 | |
| ENV PYTHONUNBUFFERED=1 | |
| # Set working directory | |
| WORKDIR /app | |
| # Install dependencies | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy project files | |
| COPY . . | |
| # Expose port 5000 | |
| EXPOSE 7860 | |
| # Run the Flask app | |
| CMD ["python", "app.py"] | |