FROM golang:1.24-alpine AS build

WORKDIR /src
COPY . .
RUN go build -o /out/agent ./cmd/agent

FROM alpine:3.22
WORKDIR /app
COPY --from=build /out/agent /usr/local/bin/agent
ENTRYPOINT ["/usr/local/bin/agent"]
