FROM golang:1.25 AS build WORKDIR /app # Cache module download COPY go.mod go.sum ./ RUN go mod download # Copy the full source tree and build the binary COPY . . RUN --mount=type=cache,target=/root/.cache \ GOBIN=/app/bin \ go install ./cmd/python-wasm-mcp FROM debian:bookworm AS runtime WORKDIR /app # Minimal runtime dependencies RUN apt-get update && apt-get install -y \ ca-certificates \ && rm -rf /var/lib/apt/lists/* \ && cp /etc/ssl/certs/ca-certificates.crt . COPY --from=build /app/bin/python-wasm-mcp /app/bin/python-wasm-mcp CMD ["/app/bin/python-wasm-mcp"] LABEL org.opencontainers.image.source="https://github.com/Xe/x"