Skip to content

DockerでMCPサーバを起動する#2

Open
walk8243 wants to merge 2 commits intomainfrom
docker
Open

DockerでMCPサーバを起動する#2
walk8243 wants to merge 2 commits intomainfrom
docker

Conversation

@walk8243
Copy link
Copy Markdown
Owner

@walk8243 walk8243 commented Nov 19, 2025

  • PythonでMCPサーバを開発
  • Dockerイメージを使ってMCPサーバを公開・利用
PS> docker build -t my-mcp-server .
[+] Building 8.8s (10/10) FINISHED
 => [internal] load .dockerignore                                                                                                                         0.0s
 => => transferring context: 2B                                                                                                                           0.0s
 => [internal] load build definition from Dockerfile                                                                                                      0.0s
 => => transferring dockerfile: 754B                                                                                                                      0.0s
 => [internal] load metadata for docker.io/library/python:3.12-slim                                                                                       2.3s
 => [1/5] FROM docker.io/library/python:3.12-slim@sha256:2e683fc3e18a248aa23b8022f2a3474b072b04fb851efe9b49f6b516a8944939                                 0.0s
 => [internal] load build context                                                                                                                         0.0s
 => => transferring context: 26.74kB                                                                                                                      0.0s
 => CACHED [2/5] WORKDIR /app                                                                                                                             0.0s
 => [3/5] COPY requirements.txt .                                                                                                                         0.0s
 => [4/5] RUN pip install --no-cache-dir -r requirements.txt                                                                                              6.2s
 => [5/5] COPY src/ src/                                                                                                                                  0.0s
 => exporting to image                                                                                                                                    0.3s
 => => exporting layers                                                                                                                                   0.2s
 => => writing image sha256:938ef1927969ad390195aa1267b039751a34580c6d119ca9b46e401449c04de8                                                              0.0s
 => => naming to docker.io/library/my-mcp-server                                                                                                          0.0s
PS> docker run -i --rm my-mcp-server
スクリーンショット 2025-11-19 184536

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant