Spaces:
Paused
Paused
Added Dockerfile and start.sh for Hugging Face deployment: FastAPI on 7860, Streamlit on 8000
29725ad Download Dockerfile from opendev-labs/Quantum-API: direct link, hf CLI and curl.
- Browser
- Download file 465 Bytes
-
https://huggingface.co/spaces/opendev-labs/Quantum-API/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/opendev-labs/Quantum-API/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/opendev-labs/Quantum-API/resolve/main/Dockerfile
465 Bytes
| # Use official slim Python 3.12 image | |
| FROM python:3.12-slim | |
| # Set working directory inside the container | |
| WORKDIR /app | |
| # Copy all project files into the container | |
| COPY . /app | |
| # Ensure start.sh is executable | |
| RUN chmod +x /app/start.sh | |
| # Install required Python packages | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Expose FastAPI on port 7860 and Streamlit on port 8000 | |
| EXPOSE 7860 | |
| EXPOSE 8000 | |
| # Launch both servers using start.sh | |
| CMD ["/app/start.sh"] | |