# ©AngelaMos | 2026 # vite.dev # # Development Dockerfile for the Vite frontend with hot # reload # # Based on node:24-alpine with corepack-activated pnpm. # Copies package.json, runs pnpm install, copies the # frontend source, and starts the Vite dev server on port # 5173. Source code is bind-mounted from the host in # dev.compose.yml for HMR. Connects to dev.compose.yml FROM node:24-alpine RUN corepack enable && corepack prepare pnpm@latest --activate WORKDIR /app COPY frontend/package.json ./ RUN pnpm install COPY frontend/ . EXPOSE 5173 CMD ["pnpm", "dev"]