# The reference frontend, served by Vite's dev server so the API URL is read from the environment at
# startup (no rebuild to repoint it). This is a demo host — not a production static deployment.
FROM node:20-slim

WORKDIR /app

COPY package.json package-lock.json ./
RUN npm ci

COPY . .

EXPOSE 5173
# --host is already set in vite.config, but pass it explicitly so the server binds all interfaces.
CMD ["npm", "run", "dev", "--", "--host", "0.0.0.0"]
