This commit is contained in:
parent
9b05ca26f3
commit
942fa88394
1 changed files with 12 additions and 0 deletions
12
Dockerfile
Normal file
12
Dockerfile
Normal file
|
@ -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"]
|
Loading…
Reference in a new issue