kazutab commited on
Commit
1b354d7
·
verified ·
1 Parent(s): ebbb1bb

Upload Dockerfile with huggingface_hub

Browse files
Files changed (1) hide show
  1. Dockerfile +15 -0
Dockerfile ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ベースイメージとしてPython 3.12を使用
2
+ FROM python:3.12-slim
3
+
4
+ # 作業ディレクトリの設定
5
+ WORKDIR /app
6
+
7
+ # 依存関係をコピーしてインストール (requirements.txt 内でコンパイル済みのCPU版を指定済み)
8
+ COPY requirements.txt .
9
+ RUN pip install --no-cache-dir -r requirements.txt
10
+
11
+ # ソースコードをコピー
12
+ COPY . .
13
+
14
+ # FastAPIサーバーを起動
15
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]