Last active
May 13, 2025 05:48
-
-
Save g-fukurowl/9466be49c9cb110bd68200fdcda34e36 to your computer and use it in GitHub Desktop.
fess-mcp-server をコンテナとして定義した DockerFile (pyproject.toml に fess-mcp-server の依存がまとまっている)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ベースイメージとしてPython 3.10を使用 | |
| FROM python:3.10-slim | |
| # 作業ディレクトリを設定 | |
| WORKDIR /app | |
| # 必要なシステムパッケージをインストール | |
| RUN apt-get update && apt-get install -y \ | |
| build-essential \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # 依存関係をコピー | |
| COPY pyproject.toml . | |
| # 依存関係をインストール(詳細なエラーメッセージを表示) | |
| RUN pip install --verbose -e . | |
| # アプリケーションコードをコピー | |
| COPY . . | |
| # 環境変数を設定 | |
| ENV PYTHONUNBUFFERED=1 | |
| ENV PORT=8000 | |
| ENV HOST=0.0.0.0 | |
| # ポートを公開 | |
| EXPOSE 8000 | |
| # fess-mcp.pyを実行 | |
| CMD ["python", "fess-mcp-server.py"] |
Author
g-fukurowl
commented
Apr 10, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment