machinelock-manager/Dockerfile
henne 942fa88394
All checks were successful
continuous-integration/drone/tag Build is passing
feat: added dockerfile
2024-12-27 23:51:56 +01:00

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"]