We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 545226a commit 644cb14Copy full SHA for 644cb14
1 file changed
Dockerfile
@@ -1,5 +1,6 @@
1
FROM golang:1.24.4-alpine AS build
2
ARG VERSION="dev"
3
+ARG TARGETARCH
4
5
# Set the working directory
6
WORKDIR /build
@@ -13,7 +14,7 @@ RUN --mount=type=cache,target=/var/cache/apk \
13
14
RUN --mount=type=cache,target=/go/pkg/mod \
15
--mount=type=cache,target=/root/.cache/go-build \
16
--mount=type=bind,target=. \
- 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)" \
17
+ CGO_ENABLED=0 GOARCH=${TARGETARCH} 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)" \
18
-o /bin/flashduty-mcp-server cmd/flashduty-mcp-server/main.go
19
20
# Make a stage to run the app
0 commit comments