Spaces:
Runtime error
Runtime error
Download Dockerfile from Typhoon-project/ML-predictor: direct link, hf CLI and curl.
- Browser
- Download file 333 Bytes
-
https://huggingface.co/spaces/Typhoon-project/ML-predictor/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Typhoon-project/ML-predictor/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Typhoon-project/ML-predictor/resolve/main/Dockerfile
333 Bytes
| # Dockerfile | |
| FROM python:3.10 | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy everything | |
| COPY . /app | |
| # Install dependencies | |
| RUN pip install flask torch numpy pandas joblib scikit-learn==1.6.1 gunicorn | |
| # Expose port | |
| EXPOSE 7860 | |
| # Run the app with gunicorn (production-ready server) | |
| CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:app"] | |