build: multi-stage Dockerfile with yq build step

This commit is contained in:
m
2026-03-29 11:51:29 +00:00
parent 6f5de542ab
commit 7880e8db32

View File

@@ -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