FROM golang:1.23 as build-env WORKDIR /go/src/machinelock ADD . /go/src/machinelock RUN go get -d -v ./... RUN CGO_ENABLED=0 go build -v -o /go/bin/machinelock FROM gcr.io/distroless/base COPY --from=build-env /go/bin/machinelock / CMD ["/machinelock"]