From 70000870c2ea5c9a8323ced5ab84d04eae335bd1 Mon Sep 17 00:00:00 2001 From: Chris Doherty Date: Tue, 15 Nov 2022 09:44:08 -0500 Subject: [PATCH] Fix docker image hegel executable permissions We use a custom user in the docker image build. The binary isn't owned by them and consequently isn't executable by them resulting in an unlaunchable Hegel image. Signed-off-by: Chris Doherty --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index c9e26eec..6bfd83c2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,5 +11,5 @@ RUN apk add --update --upgrade ca-certificates RUN adduser -D -u 1000 tinkerbell USER tinkerbell -COPY ./hegel-$TARGETOS-$TARGETARCH /usr/bin/hegel +COPY --chown=tinkerbell ./hegel-$TARGETOS-$TARGETARCH /usr/bin/hegel ENTRYPOINT ["/usr/bin/hegel"]