- FROM node:18.3.0 as builder
- ADD package*.json /opt/ui/
- WORKDIR /opt/ui
- RUN npm install
- ADD src /opt/ui/src
- ENV BASE_URL=/model
- RUN npx parcel build src/index.html
- FROM nginx:alpine
- COPY --from=builder /opt/ui/dist /var/www
- COPY default.nginx.conf /etc/nginx/conf.d/
- COPY nginx.conf /etc/nginx/
|