Spaces:
Sleeping
Sleeping
Download Dockerfile from jdsan/plot-digitizer-gateway: direct link, hf CLI and curl.
- Browser
- Download file 449 Bytes
-
https://huggingface.co/spaces/jdsan/plot-digitizer-gateway/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/jdsan/plot-digitizer-gateway/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/jdsan/plot-digitizer-gateway/resolve/main/Dockerfile
449 Bytes
| FROM python:3.11-slim | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH \ | |
| PYTHONUNBUFFERED=1 \ | |
| PIP_DISABLE_PIP_VERSION_CHECK=1 | |
| WORKDIR /home/user/app | |
| COPY --chown=user:user requirements.txt . | |
| RUN pip install --no-cache-dir --user -r requirements.txt | |
| COPY --chown=user:user gateway.py . | |
| ENV PORT=7860 | |
| EXPOSE 7860 | |
| CMD ["sh", "-c", "uvicorn gateway:app --host 0.0.0.0 --port ${PORT:-7860}"] | |