FROM node:18-alpine # Set the working directory WORKDIR /app # Copy package.json and package-lock.json (if available) COPY package*.json ./ # Install dependencies RUN npm install # Copy the rest of the application code COPY . . # Expose the port the frontend runs on EXPOSE 5173 # Command to run the frontend server CMD ["npm", "run", "dev"]