From 8be3964c58d8783bf883fbf68a701f1c3f58e54a Mon Sep 17 00:00:00 2001 From: David Karlsson <35727626+dvdksn@users.noreply.github.com> Date: Mon, 20 May 2024 16:21:28 +0200 Subject: [PATCH] build: make release the default build stage Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com> --- Dockerfile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 52d29d884a..92659baf74 100644 --- a/Dockerfile +++ b/Dockerfile @@ -31,9 +31,6 @@ ARG HUGO_ENV ARG DOCS_URL RUN hugo --gc --minify -d /out -e $HUGO_ENV -b $DOCS_URL -FROM scratch AS release -COPY --from=build /out / - FROM davidanson/markdownlint-cli2:v0.12.1 AS lint USER root RUN --mount=type=bind,target=. \ @@ -79,4 +76,5 @@ COPY --from=build-upstream /out ./public ADD .htmltest.yml .htmltest.yml RUN htmltest -FROM dev +FROM scratch AS release +COPY --from=build /out /