CraftBeer_Search / Dockerfile
koji9581's picture
Update Dockerfile
459dba9 verified
raw
history blame contribute delete
864 Bytes
FROM python:3.10-slim
WORKDIR /code
# 今回の構成(LangGraph + Gradio + Search)には、
# 元のファイルにあった画像処理系ライブラリ(ffmpeg, libsm6等)は不要です。
# ビルド高速化のため、必要最小限のシステムライブラリのみインストールします。
RUN apt-get update && apt-get install -y --no-install-recommends \
git \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# 依存関係ファイルをコピーしてインストール
COPY requirements.txt .
RUN pip install --no-cache-dir --upgrade pip \
&& pip install --no-cache-dir -r requirements.txt
# アプリケーションコード(main.py, agent.py, ui.pyなど)をコピー
COPY . .
# Spaces 標準ポート
EXPOSE 7860
# 【変更点】エントリーポイントを main.py に指定
CMD ["python", "main.py"]