Spaces:
Runtime error
Runtime error
Download Dockerfile from Emotiveimpact/DeepSeek-R1: direct link, hf CLI and curl.
- Browser
- Download file 520 Bytes
-
https://huggingface.co/spaces/Emotiveimpact/DeepSeek-R1/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Emotiveimpact/DeepSeek-R1/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Emotiveimpact/DeepSeek-R1/resolve/main/Dockerfile
520 Bytes
| FROM python:3.11 | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV PATH="/home/user/.local/bin:$PATH" | |
| WORKDIR /app | |
| # Copy and install requirements | |
| COPY --chown=user ./requirements.txt requirements.txt | |
| RUN pip install --no-cache-dir --upgrade -r requirements.txt | |
| # Copy application files | |
| COPY --chown=user . /app | |
| # Set PYTHONPATH to ensure proper module imports | |
| ENV PYTHONPATH="/app/src:${PYTHONPATH}" | |
| # Set the application to run on port 7860 | |
| CMD ["uvicorn", "src.open_r1.main:app", "--host", "0.0.0.0", "--port", "7860"] | |