From 7880e8db3299a82e318818d9547c608a1f9cedfe Mon Sep 17 00:00:00 2001 From: m Date: Sun, 29 Mar 2026 11:51:29 +0000 Subject: [PATCH] build: multi-stage Dockerfile with yq build step --- Dockerfile | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index fd69f70..8afad8e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,17 @@ +FROM alpine:3.21 AS builder + +RUN apk add --no-cache bash yq coreutils findutils + +WORKDIR /src +COPY . . + +RUN chmod +x build.sh render.sh nginx/generate-nginx.sh && \ + ./build.sh + FROM nginx:alpine -COPY build/ /usr/share/nginx/html/ -COPY nginx/nginx.conf /etc/nginx/nginx.conf + +COPY --from=builder /src/build/ /usr/share/nginx/html/ +COPY --from=builder /src/nginx/nginx.conf /etc/nginx/nginx.conf + RUN nginx -t EXPOSE 80