FROM node:18-alpine WORKDIR /app COPY frontend/package.json ./ # If package-lock.json exists, copy it (using wildcard prevents failure if missing initially) COPY frontend/package-lock.json* ./ RUN npm install COPY frontend/ . EXPOSE 5173 CMD ["npm", "run", "dev", "--", "--host"]