From 3407bc31c47ad7ce2516e912de357536753f5c8d Mon Sep 17 00:00:00 2001 From: Shekhar Vaidya Date: Wed, 2 Sep 2026 11:29:07 +0530 Subject: [PATCH] feat(frontend): add multi-stage Dockerfile for Coolify static build --- frontend/Dockerfile | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 frontend/Dockerfile diff --git a/frontend/Dockerfile b/frontend/Dockerfile new file mode 100644 index 0000000..558fd93 --- /dev/null +++ b/frontend/Dockerfile @@ -0,0 +1,13 @@ +# --- Build stage --- +FROM node:20-alpine AS build +WORKDIR /app +COPY package*.json ./ +RUN npm ci +COPY . . +RUN npm run build + +# --- Serve stage --- +FROM nginx:alpine +WORKDIR /usr/share/nginx/html/ +COPY --from=build /app/dist . +COPY ./nginx.conf /etc/nginx/conf.d/default.conf