-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (23 loc) · 961 Bytes
/
Copy pathDockerfile
File metadata and controls
25 lines (23 loc) · 961 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# MCP server image for Glama introspection/release and container installs.
# Starts the stdio MCP server (initialize + tools/list). Diagnostics go to stderr only.
# Build: docker build -t codehelper-mcp .
# Run: docker run --rm -i codehelper-mcp
FROM golang:1.25.7-bookworm AS build
RUN apt-get update && apt-get install -y --no-install-recommends gcc libc6-dev \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /src
COPY go.mod go.sum ./
RUN go mod download
COPY . .
ARG VERSION=dev
RUN MODULE="$(go list -m)" \
&& CGO_ENABLED=1 go build -trimpath -tags rod \
-ldflags="-s -w -X ${MODULE}/internal/version.linkVersion=${VERSION}" \
-o /codehelper-mcp ./cmd/codehelper-mcp
FROM debian:bookworm-slim
RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates git \
&& rm -rf /var/lib/apt/lists/*
COPY --from=build /codehelper-mcp /usr/local/bin/codehelper-mcp
RUN mkdir -p /root/.codehelper
WORKDIR /workspace
ENTRYPOINT ["codehelper-mcp"]