FROM node:20-alpine as builder WORKDIR /app COPY package.json package-lock.json ./ RUN npm ci COPY . . RUN cp node_modules/maplibre-gl/dist/maplibre-gl-csp.js public/maplibre-gl.js \ && cp node_modules/maplibre-gl/dist/maplibre-gl-csp-worker.js public/maplibre-gl-csp-worker.js \ && cp node_modules/maplibre-gl/dist/maplibre-gl.css public/maplibre-gl.css RUN npm run build FROM nginx:alpine COPY --from=builder /app/dist /usr/share/nginx/html COPY nginx.conf /etc/nginx/conf.d/default.conf EXPOSE 5173 CMD ["nginx", "-g", "daemon off;"]