Download Dockerfile from readylab/VizRef: direct link, hf CLI and curl.
- Browser
- Download file 380 Bytes
-
https://huggingface.co/spaces/readylab/VizRef/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/readylab/VizRef/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/readylab/VizRef/resolve/main/Dockerfile
380 Bytes
| FROM python:3.9-slim | |
| RUN useradd -m -u 1000 user | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # If not already in requirements.txt: | |
| # RUN pip install --no-cache-dir fastapi uvicorn python-multipart pillow requests | |
| COPY --chown=user:user . . | |
| USER user | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "api.app:app", "--host", "0.0.0.0", "--port", "7860"] | |