FROM node:20-bullseye AS base WORKDIR /app # ---- native build deps ---- RUN apt-get update -y && \ apt-get install -y --no-install-recommends \ build-essential python3 pkg-config && \ rm -rf /var/lib/apt/lists/* # --------------------------- COPY package*.json ./ RUN npm ci --unsafe-perm COPY public/ /app/public/ COPY . . CMD ["node", "backend/server2.js"]