# Use Node.js image
FROM node:lts-alpine

# Set working directory
WORKDIR /app

# Copy package.json and install dependencies
COPY package.json package-lock.json ./
RUN npm install

# Copy the rest of the application files
COPY . .

# Start with nodemon
CMD ["npm", "run", "dev"]
EXPOSE 3000