feat: added dockerfile
All checks were successful
continuous-integration/drone/tag Build is passing

This commit is contained in:
henne 2024-12-27 23:51:56 +01:00
parent 9b05ca26f3
commit 942fa88394

12
Dockerfile Normal file
View 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"]