# Pake Alpine (lebih kecil dari node:18) FROM node:18-alpine # Install git saja (minimum) RUN apk add --no-cache git WORKDIR /app # Copy dan install COPY package.json ./ RUN npm install --production --no-cache COPY . . # Limit memory Node.js ENV NODE_OPTIONS="--max-old-space-size=1024" ENV PORT=7860 EXPOSE 7860 CMD ["node", "--optimize-for-size", "index.js"]