From 05950086b569cedfa9b036ecc55203a6d58062fb Mon Sep 17 00:00:00 2001 From: Javier Cortejoso Date: Fri, 20 Oct 2023 12:10:09 +0200 Subject: [PATCH] Update Dockerfile Switch to scratch base image --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index c8d76df..aaf4256 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,8 +11,9 @@ RUN --mount=type=cache,target=/root/.cache/go-build,sharing=private \ go build -o bin/image-annotator-webhook . # --- -# FROM scratch AS run -FROM ubuntu:latest +FROM scratch AS run +# Switch for debugging +# FROM ubuntu:latest COPY --from=build /webhook/bin/image-annotator-webhook /usr/local/bin/