# Build stage FROM node:16 AS builder WORKDIR /panel COPY . . RUN npm install && npm run build # Final stage: Node.js + Python + ezdxf FROM node:16 # Install Python and pip RUN apt-get update && apt-get install -y python3 python3-pip && \ pip3 install --no-cache-dir ezdxf && \ apt-get clean && rm -rf /var/lib/apt/lists/* # Copy Node app WORKDIR /panel COPY --from=builder /panel ./ RUN npm install --omit=dev EXPOSE 3000 CMD ["npm", "run", "start"]