diff --git a/Dockerfile b/Dockerfile index 10f29da..3a9c6a0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -36,7 +36,8 @@ RUN npm run build:ts # Build Go binary (cached unless Go files or generated code changes) RUN --mount=type=cache,target=/root/go/pkg/mod \ - CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o main ./cmd/server + --mount=type=cache,target=/root/.cache/go-build \ + CGO_ENABLED=0 GOOS=linux go build -installsuffix cgo -o main ./cmd/server # Test runner stage - includes Go runtime and test dependencies # This stage is ONLY used for running tests, never deployed to production