From 55c41a2071b6bc36458696e22ec5228a01f25710 Mon Sep 17 00:00:00 2001 From: sHa Date: Fri, 20 Mar 2026 14:27:53 +0200 Subject: [PATCH] Update build workflow to reference new Containerfile location and add Containerfile for Docker image build --- .github/workflows/build.yml | 2 +- container/Containerfile | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 container/Containerfile diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7867e29..67a7e37 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -33,7 +33,7 @@ jobs: uses: docker/build-push-action@v6 with: context: . - file: build/Containerfile + file: container/Containerfile platforms: linux/amd64,linux/arm64 push: true tags: ghcr.io/${{ github.repository }}:latest diff --git a/container/Containerfile b/container/Containerfile new file mode 100644 index 0000000..e9dea20 --- /dev/null +++ b/container/Containerfile @@ -0,0 +1,20 @@ +FROM python:3.12-slim + +WORKDIR /app + +COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv + +# Copy dependency files first for layer caching +COPY pyproject.toml uv.lock* ./ +RUN uv pip install --system mcp httpx + +COPY server.py . +COPY app/ app/ + +ENV MCP_TRANSPORT=http +ENV MCP_HOST=0.0.0.0 +ENV MCP_PORT=8000 + +EXPOSE 8000 + +CMD ["python", "server.py"]