FROM node:18-slim WORKDIR /app # Install build dependencies RUN apt-get update && apt-get install -y \ python3 \ make \ g++ \ && rm -rf /var/lib/apt/lists/* COPY package*.json ./ # Install dependencies RUN npm install --production COPY server.js ./ ENV PORT=3000 ENV NODE_ENV=production EXPOSE 3000 CMD ["node", "server.js"]