Spaces:
Build error
Build error
| FROM python:3.9-slim | |
| # システムパッケージの更新とインストール | |
| RUN apt-get update && apt-get install -y \ | |
| build-essential \ | |
| curl \ | |
| software-properties-common \ | |
| git \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # 作業ディレクトリの設定 | |
| WORKDIR /app | |
| # Pythonの依存関係をインストール | |
| COPY requirements_hf.txt requirements.txt | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # アプリケーションファイルをコピー | |
| COPY . . | |
| # ポートの公開 | |
| EXPOSE 7860 | |
| # アプリケーションの起動 | |
| CMD ["python", "app_docker.py"] | |