Download Dockerfile from benresnic/Models: direct link, hf CLI and curl.
- Browser
- Download file 338 Bytes
-
https://huggingface.co/spaces/benresnic/Models/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/benresnic/Models/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/benresnic/Models/resolve/main/Dockerfile
338 Bytes
| FROM python:3.11-slim | |
| WORKDIR /app | |
| ENV PYTHONUNBUFFERED=1 \ | |
| PIP_NO_CACHE_DIR=1 | |
| # Install python deps | |
| RUN pip install --no-cache-dir \ | |
| shiny \ | |
| starlette \ | |
| uvicorn \ | |
| huggingface_hub | |
| # Copy app | |
| COPY app.py /app/app.py | |
| EXPOSE 7860 | |
| CMD ["python", "-m", "shiny", "run", "--host", "0.0.0.0", "--port", "7860", "app.py"] |