Spaces:
Runtime error
Runtime error
Download Dockerfile.bak2 from VcRlAgent/workwise-backend-gpu: direct link, hf CLI and curl.
- Browser
- Download file 656 Bytes
-
https://huggingface.co/spaces/VcRlAgent/workwise-backend-gpu/resolve/main/Dockerfile.bak2
- Command line
-
hf download hf://spaces/VcRlAgent/workwise-backend-gpu/Dockerfile.bak2
-
curl -L -o Dockerfile.bak2 https://huggingface.co/spaces/VcRlAgent/workwise-backend-gpu/resolve/main/Dockerfile.bak2
656 Bytes
| RUN useradd -m -u 1000 user | |
| WORKDIR /home/user/app | |
| # Minimal system dependencies | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| git \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Copy requirements first | |
| COPY --chown=1000:1000 requirements.txt . | |
| # Install Python packages efficiently | |
| RUN pip install --no-cache-dir -U pip && \ | |
| pip install --no-cache-dir \ | |
| fastapi==0.104.1 \ | |
| uvicorn[standard]==0.24.0 \ | |
| sentence-transformers \ | |
| faiss-cpu \ | |
| torch \ | |
| transformers \ | |
| pydantic | |
| # Copy app | |
| COPY --chown=1000:1000 . . | |
| USER user | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"] | |