Dockerfile 295 B

123456789101112
  1. FROM node:18.3.0 as builder
  2. ADD package*.json /opt/ui/
  3. WORKDIR /opt/ui
  4. RUN npm install
  5. ADD src /opt/ui/src
  6. ENV BASE_URL=/model
  7. RUN npx parcel build src/index.html
  8. FROM nginx:alpine
  9. COPY --from=builder /opt/ui/dist /var/www
  10. COPY default.nginx.conf /etc/nginx/conf.d/
  11. COPY nginx.conf /etc/nginx/