Download Dockerfile from FINAL-Bench/open-quantum-challenge: direct link, hf CLI and curl.
- Browser
- Download file 384 Bytes
-
https://huggingface.co/spaces/FINAL-Bench/open-quantum-challenge/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/FINAL-Bench/open-quantum-challenge/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/FINAL-Bench/open-quantum-challenge/resolve/main/Dockerfile
384 Bytes
| # HF Spaces runs the container as a non-root user; write only under paths we own. | |
| FROM python:3.11-slim | |
| RUN useradd -m -u 1000 user | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| RUN chown -R user:user /app | |
| USER user | |
| ENV ODC_DATASET=FINAL-Bench/oqc-ledger | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |