koji9581 commited on
Commit
459dba9
·
verified ·
1 Parent(s): afebc9a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -10
Dockerfile CHANGED
@@ -2,26 +2,24 @@ FROM python:3.10-slim
2
 
3
  WORKDIR /code
4
 
5
- # 実行時必要な依存ライブラリをインストール
 
 
6
  RUN apt-get update && apt-get install -y --no-install-recommends \
7
- ffmpeg \
8
- libsm6 \
9
- libxext6 \
10
- libgl1 \
11
- git-lfs \
12
  && apt-get clean \
13
  && rm -rf /var/lib/apt/lists/*
14
 
15
- # 依存関係を先にインストールしてキャッシュを有効化
16
  COPY requirements.txt .
17
  RUN pip install --no-cache-dir --upgrade pip \
18
  && pip install --no-cache-dir -r requirements.txt
19
 
20
- # アプリケーションコードをコピー
21
  COPY . .
22
 
23
  # Spaces 標準ポート
24
  EXPOSE 7860
25
 
26
- # アプショ起動
27
- CMD ["python", "app.py"]
 
2
 
3
  WORKDIR /code
4
 
5
+ # 今回の構成(LangGraph + Gradio + Search)は、
6
+ # 元のファイルにあった画像処理系ライブラリ(ffmpeg, libsm6等)は不要です。
7
+ # ビルド高速化のため、必要最小限のシステムライブラリのみインストールします。
8
  RUN apt-get update && apt-get install -y --no-install-recommends \
9
+ git \
 
 
 
 
10
  && apt-get clean \
11
  && rm -rf /var/lib/apt/lists/*
12
 
13
+ # 依存関係ファイルコピーしてインストール
14
  COPY requirements.txt .
15
  RUN pip install --no-cache-dir --upgrade pip \
16
  && pip install --no-cache-dir -r requirements.txt
17
 
18
+ # アプリケーションコード(main.py, agent.py, ui.pyなど)をコピー
19
  COPY . .
20
 
21
  # Spaces 標準ポート
22
  EXPOSE 7860
23
 
24
+ # 【変更点】エントリーポイトを main.py に指定
25
+ CMD ["python", "main.py"]