Spaces:
Running
Running
Download Dockerfile from mjpsm/activity-generation-api: direct link, hf CLI and curl.
- Browser
- Download file 331 Bytes
-
https://huggingface.co/spaces/mjpsm/activity-generation-api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/mjpsm/activity-generation-api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/mjpsm/activity-generation-api/resolve/main/Dockerfile
331 Bytes
| FROM python:3.11-slim | |
| ENV PYTHONDONTWRITEBYTECODE=1 \ | |
| PYTHONUNBUFFERED=1 \ | |
| PORT=7860 | |
| WORKDIR /app | |
| COPY requirements.txt ./ | |
| RUN pip install --no-cache-dir -r requirements.txt \ | |
| && useradd -m -u 1000 appuser | |
| COPY app ./app | |
| USER appuser | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"] | |