From cb89101a36e07abfa4edfd3b22541ca576f2b472 Mon Sep 17 00:00:00 2001 From: Sergey Nuzhdin Date: Thu, 11 Jun 2020 06:39:43 +0100 Subject: [PATCH] hotfix: add dockerfile for Goreleaser --- .goreleaser.yml | 2 +- Dockerfile.releaser | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 Dockerfile.releaser diff --git a/.goreleaser.yml b/.goreleaser.yml index 061569bc..a82f210a 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -27,7 +27,7 @@ release: prerelease: true dockers: - - dockerfile: Dockerfile + - dockerfile: Dockerfile.releaser binaries: - kube-cleanup-operator goos: linux diff --git a/Dockerfile.releaser b/Dockerfile.releaser new file mode 100644 index 00000000..5b42d050 --- /dev/null +++ b/Dockerfile.releaser @@ -0,0 +1,10 @@ +FROM alpine +MAINTAINER Sergey Nuzhdin + +RUN addgroup -S kube-operator && adduser -S -g kube-operator kube-operator + +USER kube-operator + +COPY kube-cleanup-operator . + +ENTRYPOINT ["./kube-cleanup-operator"]