Newer
Older
ARG NODE_VERSION=23
ARG NGINX_VERSION=1.27
ARG GITLAB_PROXY
FROM ${GITLAB_PROXY}node:$NODE_VERSION-alpine as builder
COPY ./api/openapiv2/gosdn_northbound.swagger.json /app/api/openapiv2/gosdn_northbound.swagger.json
COPY ./react-ui /app/react-ui
RUN cd /app/react-ui && yarn && yarn build
FROM ${GITLAB_PROXY}nginx:$NGINX_VERSION-alpine
COPY --from=builder /app/react-ui/dist /usr/share/nginx/html
COPY --from=builder /app/react-ui/docker/webserver/nginx.conf /etc/nginx/nginx.conf
EXPOSE 80