Spaces:
Sleeping
Sleeping
Download Dockerfile from tianruci/bestgithub: direct link, hf CLI and curl.
- Browser
- Download file 373 Bytes
-
https://huggingface.co/spaces/tianruci/bestgithub/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/tianruci/bestgithub/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/tianruci/bestgithub/resolve/main/Dockerfile
373 Bytes
| # 使用官方Python镜像 | |
| FROM python:3.10-slim | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV PATH="/home/user/.local/bin:$PATH" | |
| WORKDIR /app | |
| COPY --chown=user requirements.txt requirements.txt | |
| RUN pip install --no-cache-dir --upgrade -r requirements.txt | |
| COPY --chown=user . . | |
| # 使用shell形式避免JSON数组解析问题 | |
| CMD uvicorn app:app --host 0.0.0.0 --port 7860 |