Spaces:
Sleeping
Sleeping
Download Dockerfile from ownitup/beploo-audit-api: direct link, hf CLI and curl.
- Browser
- Download file 449 Bytes
-
https://huggingface.co/spaces/ownitup/beploo-audit-api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/ownitup/beploo-audit-api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/ownitup/beploo-audit-api/resolve/main/Dockerfile
449 Bytes
| # 1. Use extremely lightweight Python | |
| FROM python:3.9-slim | |
| # 2. Set working directory | |
| WORKDIR /app | |
| # 3. Create user | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV PATH="/home/user/.local/bin:$PATH" | |
| # 4. Copy requirements & Install | |
| COPY --chown=user requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # 5. Copy App Code | |
| COPY --chown=user . . | |
| # 6. Start Server | |
| CMD ["uvicorn", "api.index:app", "--host", "0.0.0.0", "--port", "7860"] |