Download Dockerfile from Sakalti/Gemini: direct link, hf CLI and curl.
- Browser
- Download file 810 Bytes
-
https://huggingface.co/spaces/Sakalti/Gemini/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Sakalti/Gemini/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Sakalti/Gemini/resolve/main/Dockerfile
810 Bytes
| # ベースイメージ | |
| FROM python:3.10-slim | |
| # 作業ディレクトリ作成 | |
| WORKDIR /app | |
| # 必要なLinuxパッケージ | |
| RUN apt-get update && \ | |
| apt-get install -y --no-install-recommends \ | |
| git \ | |
| git-lfs \ | |
| ffmpeg \ | |
| libsm6 \ | |
| libxext6 \ | |
| cmake \ | |
| rsync \ | |
| && rm -rf /var/lib/apt/lists/* \ | |
| && git lfs install | |
| # Pythonライブラリのコピーとインストール | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # アプリケーションコードをコピー | |
| COPY . . | |
| # ポート番号を環境変数で指定(HF SpacesやDocker向け) | |
| ENV PORT=7860 | |
| # Gradioを0.0.0.0で起動して外部からアクセス可能に | |
| CMD ["python", "-u", "App2.py", "--server.port", "7860", "--server.address", "0.0.0.0"] | |