machinelock-manager/Dockerfile

12 lines
256 B
Text
Raw Normal View History

2024-12-27 22:51:56 +00:00
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"]