ci: lean Dockerfile (drop build-essential), split+timeout build steps, buildkit
build-image / build (push) Successful in 20s

This commit is contained in:
2026-07-04 18:09:17 -04:00
parent 329d8b3078
commit 1ec2a76d1e
2 changed files with 18 additions and 15 deletions
+3 -12
View File
@@ -1,25 +1,16 @@
FROM python:3.12-slim
# Set working directory
WORKDIR /app
# Install build dependencies and Python build backend
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
build-essential \
curl \
&& rm -rf /var/lib/apt/lists/*
# Install Python build tool
RUN pip install --no-cache-dir hatchling
# Copy project files
COPY pyproject.toml pyproject.toml
COPY src src
COPY README.md README.md
COPY .env.example .env.example
# Install the package and runtime dependencies
# Install the package and runtime dependencies. All dependencies ship as
# manylinux wheels (pydantic-core, cryptography, etc.), so no build toolchain
# is required — keeping the image small and the build fast.
RUN pip install --no-cache-dir .
# Run the MCP server. Transport is selected via MCP_TRANSPORT (default stdio);