FROM node:22-bullseye

WORKDIR /app

COPY package*.json ./
RUN npm ci && npm cache clean --force

COPY src ./src
COPY index.html .
COPY vite.config.* .
COPY tsconfig.* .

EXPOSE 5173

CMD ["npm", "run", "devwatch"]