# Use an official Node runtime as a parent image FROM node:18 # Install nodemon globally RUN npm install -g nodemon # Create a directory for the application WORKDIR /app/frontend # Copy package.json and package-lock.json COPY frontend/package*.json ./ # Install dependencies RUN npm install # Copy the rest of the application code COPY frontend . # Expose the port EXPOSE 5173 # Define the command to run the frontend app CMD ["npm", "run", "dev"]