diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..afbe572 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +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"] \ No newline at end of file