12 lines
No EOL
256 B
Docker
12 lines
No EOL
256 B
Docker
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"] |