Download Dockerfile.deploy from buchi-stdesign/SBV2-demo: direct link, hf CLI and curl.
- Browser
- Download file 584 Bytes
-
https://huggingface.co/buchi-stdesign/SBV2-demo/resolve/main/Dockerfile.deploy
- Command line
-
hf download hf://buchi-stdesign/SBV2-demo/Dockerfile.deploy
-
curl -L -o Dockerfile.deploy https://huggingface.co/buchi-stdesign/SBV2-demo/resolve/main/Dockerfile.deploy
584 Bytes
| # Hugging face spaces (CPU) でエディタ (server_editor.py) のデプロイ用 | |
| # See https://huggingface.co/docs/hub/spaces-sdks-docker-first-demo | |
| FROM python:3.10 | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH | |
| WORKDIR $HOME/app | |
| RUN pip install --no-cache-dir --upgrade pip | |
| COPY --chown=user . $HOME/app | |
| RUN pip install --no-cache-dir -r $HOME/app/requirements.txt | |
| # 必要に応じて制限を変更してください | |
| CMD ["python", "server_editor.py", "--line_length", "50", "--line_count", "3", "--skip_static_files"] | |