# Use official Node.js LTS image
FROM node:18

# Set working directory
WORKDIR /app

# Copy package.json and package-lock.json
COPY package.json package-lock.json ./

# Install dependencies
RUN npm install

# Copy backend source files
COPY . .

# Expose port
EXPOSE 5000

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