FROM node:24-alpine AS build WORKDIR /src COPY web/package.json web/package-lock.json ./web/ RUN cd web && npm ci COPY ConfigCenter.jsx ./ConfigCenter.jsx COPY web ./web RUN cd web && npm run build FROM nginx:1.31.4-alpine3.24-slim ARG VERSION=dev ARG VCS_REF=unknown ARG BUILD_DATE=unknown LABEL org.opencontainers.image.title="Config Center Web" \ org.opencontainers.image.version="${VERSION}" \ org.opencontainers.image.revision="${VCS_REF}" \ org.opencontainers.image.created="${BUILD_DATE}" RUN apk upgrade --no-cache COPY web/nginx.conf /etc/nginx/conf.d/default.conf COPY --from=build /src/web/dist /usr/share/nginx/html EXPOSE 80