update docker for mono repo

This commit is contained in:
2026-08-01 00:12:10 +05:00
parent 29900e5625
commit ab75dd33f1
6 changed files with 2 additions and 2 deletions
+12
View File
@@ -0,0 +1,12 @@
FROM node:22.17.0-alpine AS frontendbuilder
ARG VITE_API_TARGET
WORKDIR /var/www/html
COPY . .
RUN echo VITE_API_TARGET=$VITE_API_TARGET > .env \
&& npm ci && npm run build
FROM nginx
COPY --from=frontendbuilder /var/www/html/dist /usr/share/nginx/html