Spaces:
Sleeping
Sleeping
Download Dockerfile from duqing026/aura-ui-prototype: direct link, hf CLI and curl.
- Browser
- Download file 286 Bytes
-
https://huggingface.co/spaces/duqing026/aura-ui-prototype/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/duqing026/aura-ui-prototype/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/duqing026/aura-ui-prototype/resolve/main/Dockerfile
286 Bytes
| FROM python:3.11-slim | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| # Create a non-root user for security | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV FLASK_APP=app.py | |
| ENV PORT=7860 | |
| CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:app"] | |