File size: 369 Bytes
e5fcfe9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# 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"]