# syntax=docker/dockerfile:1.7 # lux-fleet — the read-only luxd fleet overview, pure Go, no Python runtime. FROM golang:1.26-alpine AS build WORKDIR /src COPY go.mod go.sum ./ RUN go mod download COPY fleet/ ./fleet/ COPY cmd/fleet/ ./cmd/fleet/ ARG VERSION=dev RUN CGO_ENABLED=0 GOOS=linux go build -trimpath \ -ldflags "-s -w -X main.version=${VERSION}" -o /out/fleet ./cmd/fleet FROM scratch COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt COPY --from=build /out/fleet /usr/local/bin/fleet EXPOSE 8000 USER 65532:65532 ENTRYPOINT ["/usr/local/bin/fleet"]