Spaces:
Sleeping
Sleeping
Download Dockerfile from stevafernandes/CURAS: direct link, hf CLI and curl.
- Browser
- Download file 410 Bytes
-
https://huggingface.co/spaces/stevafernandes/CURAS/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/stevafernandes/CURAS/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/stevafernandes/CURAS/resolve/main/Dockerfile
410 Bytes
| FROM python:3.12-slim | |
| ENV PYTHONDONTWRITEBYTECODE=1 \ | |
| PYTHONUNBUFFERED=1 \ | |
| PIP_NO_CACHE_DIR=1 | |
| # Hugging Face Spaces run containers as user 1000. | |
| RUN useradd -m -u 1000 user | |
| WORKDIR /home/user/app | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY --chown=user:user app ./app | |
| USER user | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"] | |