# ---- Dockerfile.server3 (fixed) ------------------------------ FROM node:20-bullseye WORKDIR /app # 1. native build dependencies + curl RUN apt-get update -y && \ apt-get install -y --no-install-recommends \ build-essential python3 pkg-config curl && \ rm -rf /var/lib/apt/lists/* # 2. node deps COPY package*.json ./ RUN npm ci --omit=dev --unsafe-perm # 3. static assets & source COPY public/ /app/public/ COPY . . CMD ["node", "backend/server3.js"]