GPTfree api commited on
Commit
5928b03
·
verified ·
1 Parent(s): e0856b6

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +17 -0
Dockerfile ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ベースイメージとして公式Pythonイメージを使用
2
+ FROM python:3.10-slim
3
+
4
+ # 作業ディレクトリを設定
5
+ WORKDIR /app
6
+
7
+ # ローカルのrequirements.txtをコンテナ内にコピー
8
+ COPY requirements.txt .
9
+
10
+ # requirements.txtを使って依存関係をインストール
11
+ RUN pip install --no-cache-dir -r requirements.txt
12
+
13
+ # アプリケーションのソースコードをコンテナ内にコピー
14
+ COPY . .
15
+
16
+ # コンテナ起動時に実行するコマンド
17
+ CMD ["python", "app.py"]