Dockerfile.dev 511 B

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