# Dockerfile FROM python:3.9-slim WORKDIR /app # 依存関係のインストール COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # アプリの全ファイルをコピー COPY . . RUN touch weak_phrases.json && chmod 666 weak_phrases.json # Hugging Face Spaces ではポート 7860 を使用する EXPOSE 7860 CMD ["python", "app.py"]