FROM node:20-alpine

# Set working directory
WORKDIR /app

# Copy package files
COPY package*.json ./

# Debug: List files and Node.js version
RUN ls -la && node --version && npm --version

# Install dependencies with more verbose output
RUN npm install --verbose

# Expose port
EXPOSE 3000

# Start the development server
CMD ["npm", "run", "dev"]
