From daea602c44c4654a05548231ce938c3acfa92d7e Mon Sep 17 00:00:00 2001 From: Danil-Grigorev Date: Fri, 24 May 2024 14:05:41 +0200 Subject: [PATCH] Add helm to Dockerfile Signed-off-by: Danil-Grigorev --- Dockerfile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index b17d7c9..1ba8510 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,9 @@ -FROM cgr.dev/chainguard/static +FROM cgr.dev/chainguard/static as build LABEL org.opencontainers.image.source=https://github.com/rancher-sandbox/cluster-api-addon-provider-fleet COPY --chown=nonroot:nonroot ./_out/controller /app/ + +FROM alpine/helm:3.14.4 +COPY --from=build --chown=nonroot:nonroot /app/controller /apps/ +ENV PATH="${PATH}:/apps" EXPOSE 8080 -ENTRYPOINT ["/app/controller"] \ No newline at end of file +ENTRYPOINT ["/apps/controller"]