GPTfree api commited on
Commit
e777bbc
·
verified ·
1 Parent(s): c4698c2

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +0 -27
Dockerfile CHANGED
@@ -1,27 +0,0 @@
1
- # ベースイメージとして公式Pythonイメージを使用
2
- FROM python:3.10-slim
3
-
4
- # 作業ディレクトリを設定
5
- WORKDIR /app
6
-
7
- # 必要なパッケージのインストール
8
- RUN apt-get update && apt-get install -y --no-install-recommends \
9
- git \
10
- curl \
11
- && apt-get clean \
12
- && rm -rf /var/lib/apt/lists/*
13
-
14
- # requirements.txt をコンテナ内にコピー
15
- COPY requirements.txt .
16
-
17
- # Gradioとその他の依存関係をインストール
18
- RUN pip install --no-cache-dir -r requirements.txt
19
-
20
- # アプリケーションのコードをコンテナ内にコピー
21
- COPY . .
22
-
23
- # ポート3000を使用する場合の環境変数を設定(Hugging Face Spacesのデフォルト)
24
- ENV PORT=7860
25
-
26
- # コンテナ起動時に Gradio アプリを実行
27
- CMD ["python", "app.py"]