From 1309a4ef69d7abed41fa6c37b6b21892972b1d76 Mon Sep 17 00:00:00 2001 From: Moath Qasim Date: Tue, 4 Apr 2023 12:38:07 +0200 Subject: [PATCH] add a docker file for the operator Signed-off-by: Moath Qasim --- Dockerfile | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..a781a56 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +ARG GO_VERSION=1.20.1 +FROM golang:${GO_VERSION} AS builder +WORKDIR /go/src/github.com/moadqasem/kubetink +COPY . . +RUN make all + +FROM alpine:3.16 + +COPY --from=builder \ + /go/src/github.com/moadqasem/kubetink/_build/tinkerbell \ + /usr/local/bin/ + +USER nobody