| 1234567891011121314151617181920 |
- FROM node:18-alpine AS builder
- WORKDIR /app
- COPY package*.json ./
- RUN npm config set registry https://registry.npmmirror.com && npm install
- COPY . .
- RUN npx vite build
- FROM nginx:alpine
- RUN apk add --no-cache gettext
- COPY --from=builder /app/dist /usr/share/nginx/html
- COPY nginx/nginx.conf /etc/nginx/nginx.conf.tmpl
- COPY nginx/startup.sh /docker-entrypoint.d/01-envsubst.sh
- RUN chmod +x /docker-entrypoint.d/01-envsubst.sh
- ENV BACKEND_HOST=LQMDRetrieval:8007
- EXPOSE 80
- CMD ["nginx", "-g", "daemon off;"]
|