FROM node:lts-alpine WORKDIR /app # Copy dependency definitions COPY package*.json ./ # Install dependencies RUN npm install # Copy the rest of the source code COPY . . # Expose the standard Vite port EXPOSE 5173 # Compute layout, then start the dev server with --host for external access CMD ["sh", "-c", "npm run dev -- --host"]