services:
  web:
    image: node:24-alpine
    working_dir: /app
    volumes:
      - .:/app
      - node_modules:/app/node_modules
    ports:
      - "5173:5173"
    command: sh -c "npm install -g corepack && corepack enable && pnpm install && pnpm run dev --host"
    environment:
      - NODE_ENV=development

volumes:
  node_modules: