mirror of
https://github.com/hanzoai/agent.git
synced 2026-10-30 15:05:34 +00:00
Modules declare go 1.27.1 and the build images follow. go fix applied the modernizers; the intPtr test helper had no callers left once new(expr) could say it. omitzero is not applied, since it changes what the JSON says. Co-Authored-By: Claude Opus 5 <[email protected]>
13 lines
383 B
Docker
13 lines
383 B
Docker
FROM golang:1.27.1-alpine
|
|
|
|
WORKDIR /workspace
|
|
|
|
COPY sdk/go /tmp/go-sdk
|
|
|
|
RUN --mount=type=cache,target=/root/.cache/go-build --mount=type=cache,target=/go/pkg/mod \
|
|
cd /tmp/go-sdk && go mod download && go test ./...
|
|
|
|
ENV GO111MODULE=on
|
|
|
|
CMD ["sh", "-c", "echo 'Hanzo Agents Go agent image ready. Mount or COPY your agent source and override CMD to run it.' && tail -f /dev/null"]
|