FROM node:16-alpine # Install dependencies for native modules RUN apk add --no-cache python3 make g++ WORKDIR /app # Copy package files COPY package*.json ./ # Install dependencies RUN npm install --only=production # Copy application files COPY . . # Create uploads directory RUN mkdir -p /app/uploads # Expose ports EXPOSE 3000 3001 # Start the application CMD ["node", "src/Server.js"]