Files
radadmin/.build/prod/frontend.Dockerfile
shihaam 2f66c04d1b
build-and-push / build (push) Canceled after 0s
build backend and auto build and push everything
2026-08-01 00:27:38 +05:00

14 lines
325 B
Docker

FROM node:22.17.0-alpine AS frontendbuilder
ARG VITE_API_TARGET
WORKDIR /var/www/html
COPY frontend/ .
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
COPY .build/prod/nginx.conf /etc/nginx/conf.d/default.conf