FROM node:18-alpine

WORKDIR /app

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

# Install dependencies
RUN npm install

# Copy app files
COPY . .

EXPOSE 3000

CMD ["npm", "run", "dev"]

