FROM node:20-bookworm

WORKDIR /frontend

COPY package.json ./
COPY tsconfig.json ./
COPY vite.config.ts ./
COPY index.html ./

RUN npm install

COPY src ./src

CMD ["npm", "run", "dev", "--", "--host", "0.0.0.0"]