8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a14e982 commit fa8c23aCopy full SHA for fa8c23a
Dockerfile
@@ -1,3 +1,5 @@
1
+ARG VERSION="dev"
2
+
3
FROM golang:1.23.7 AS build
4
# Set the working directory
5
WORKDIR /build
@@ -6,7 +8,8 @@ COPY . .
6
8
# Install dependencies
7
9
RUN go mod download
10
# Build the server
-RUN CGO_ENABLED=0 go build -o github-mcp-server cmd/github-mcp-server/main.go
11
+RUN CGO_ENABLED=0 go build -ldflags="-s -w -X main.version=${VERSION} -X main.commit=$(git rev-parse HEAD) -X main.date=$(date -u +%Y-%m-%dT%H:%M:%SZ)" \
12
+ -o github-mcp-server cmd/github-mcp-server/main.go
13
# Make a stage to run the app
14
FROM gcr.io/distroless/base-debian12
15
0 commit comments