Spaces:
Runtime error
Runtime error
Download Dockerfile from Kavya-Jain/Electricity-Cost-Predictor-FastAPI: direct link, hf CLI and curl.
- Browser
- Download file 266 Bytes
-
https://huggingface.co/spaces/Kavya-Jain/Electricity-Cost-Predictor-FastAPI/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Kavya-Jain/Electricity-Cost-Predictor-FastAPI/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Kavya-Jain/Electricity-Cost-Predictor-FastAPI/resolve/main/Dockerfile
266 Bytes
| FROM python:3.9-slim-buster | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| EXPOSE 8000 | |
| CMD ["gunicorn", "main:app", "--workers", "4", "--worker-class", "uvicorn.workers.UvicornWorker", "--bind", "0.0.0.0:8000"] |