Spaces:
Runtime error
Runtime error
Download Dockerfile from Mirikram/iris_classifier: direct link, hf CLI and curl.
- Browser
- Download file 381 Bytes
-
https://huggingface.co/spaces/Mirikram/iris_classifier/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Mirikram/iris_classifier/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Mirikram/iris_classifier/resolve/main/Dockerfile
381 Bytes
| FROM python:3.10-slim | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| # expose FastAPI on port 8000 | |
| EXPOSE 8000 | |
| # expose Streamlit on port 8501 | |
| EXPOSE 8501 | |
| # run both in parallel | |
| CMD ["sh", "-c", "uvicorn main:app --host 0.0.0.0 --port 8000 & streamlit run frontend.py --server.port=8501 --server.address=0.0.0.0"] |