FROM node:22-alpine AS build WORKDIR /app COPY package.json package-lock.json* ./ RUN npm ci COPY . . ARG VITE_API_BASE_URL=http://localhost:8080 ENV VITE_API_BASE_URL=${VITE_API_BASE_URL} RUN npm run build FROM nginx:1.27-alpine AS runtime WORKDIR /usr/share/nginx/html COPY --from=build /app/dist ./ COPY infra/nginx/default.conf /etc/nginx/conf.d/default.conf EXPOSE 80 CMD ["nginx", "-g", "daemon off;"]