Download Dockerfile from amineelh/AgentApi: direct link, hf CLI and curl.
- Browser
- Download file 498 Bytes
-
https://huggingface.co/spaces/amineelh/AgentApi/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/amineelh/AgentApi/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/amineelh/AgentApi/resolve/main/Dockerfile
498 Bytes
| # Base image | |
| FROM python:3.12.9 | |
| # Create a non-root user and switch to it | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| # Set environment path | |
| ENV PATH="/home/user/.local/bin:$PATH" | |
| # Working directory | |
| WORKDIR /app | |
| # Install dependencies | |
| COPY --chown=user ./requirements.txt requirements.txt | |
| RUN pip install --no-cache-dir --upgrade -r requirements.txt | |
| # Copy the entire app | |
| COPY --chown=user . /app | |
| # Launch the app (adjusted path!) | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |