Spaces:
Sleeping
Sleeping
Download Dockerfile from HarryDeepWise/web_demo: direct link, hf CLI and curl.
- Browser
- Download file 397 Bytes
-
https://huggingface.co/spaces/HarryDeepWise/web_demo/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/HarryDeepWise/web_demo/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/HarryDeepWise/web_demo/resolve/main/Dockerfile
397 Bytes
| FROM python:3.12-slim | |
| ENV PYTHONDONTWRITEBYTECODE=1 \ | |
| PYTHONUNBUFFERED=1 \ | |
| PIP_NO_CACHE_DIR=1 | |
| RUN useradd --create-home --uid 1000 user | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip install --upgrade pip \ | |
| && pip install -r requirements.txt | |
| COPY --chown=user:user . . | |
| USER user | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "7860", "--no-access-log"] | |