From 4e5b87308730ab16d4c5177518d92847fde75a99 Mon Sep 17 00:00:00 2001 From: xcaliber Date: Mon, 16 Feb 2026 01:36:32 +0000 Subject: [PATCH] revert bb7370db117c0522e088361888e6c13a312add67 revert Update Dockerfile.frontend --- Dockerfile.frontend | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Dockerfile.frontend b/Dockerfile.frontend index 043db74..decb9eb 100644 --- a/Dockerfile.frontend +++ b/Dockerfile.frontend @@ -7,6 +7,17 @@ # Also used for the lite (unmanaged) deployment. # ========================================== +# Build stage +FROM alpine:3.19 AS builder + +WORKDIR /app +RUN apk add --no-cache bash coreutils + +COPY build.sh ./ +COPY src ./src + +RUN chmod +x build.sh && ./build.sh + # Production stage FROM nginx:alpine @@ -14,7 +25,7 @@ FROM nginx:alpine COPY nginx.frontend.conf /etc/nginx/conf.d/default.conf # Built SPA files -COPY src /app/standalone /usr/share/nginx/html +COPY --from=builder /app/standalone /usr/share/nginx/html EXPOSE 80