Spaces:
Sleeping
Sleeping
Download Dockerfile from Rohan014/ga2-e8c0f1: direct link, hf CLI and curl.
- Browser
- Download file 323 Bytes
-
https://huggingface.co/spaces/Rohan014/ga2-e8c0f1/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Rohan014/ga2-e8c0f1/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Rohan014/ga2-e8c0f1/resolve/main/Dockerfile
323 Bytes
| FROM python:3.11-slim | |
| # Create non-root user with UID 1000 | |
| RUN useradd -m -u 1000 user | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| ENV APP_PORT=7152 | |
| EXPOSE 7152 | |
| # Switch to non-root user | |
| USER user | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7152"] |