FROM node:18-alpine

# Install required tools
RUN apk add --no-cache curl mysql-client python3 make g++

WORKDIR /app

# Copy package files first for better caching
COPY package*.json ./

# Install dependencies
RUN npm install --production

# Copy application code
COPY . .



# Expose the port
EXPOSE 3005

# Start the server
CMD ["node", "server.js"]
