Download Dockerfile from RDS777/Break: direct link, hf CLI and curl.
- Browser
- Download file 584 Bytes
-
https://huggingface.co/spaces/RDS777/Break/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/RDS777/Break/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/RDS777/Break/resolve/main/Dockerfile
584 Bytes
| FROM pytorch/pytorch:2.3.1-cuda12.1-cudnn8-runtime | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| git curl build-essential libgomp1 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir --upgrade pip && \ | |
| pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| RUN mkdir -p /app/data/chroma_db /app/data/repo | |
| RUN useradd -m -u 1000 user | |
| RUN chown -R user:user /app | |
| USER user | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "1", "--log-level", "warning"] |