# Development image: runs the Vite dev server. A production build image is a
# later concern.
FROM node:24-alpine

WORKDIR /app

# Install dependencies against this image's platform (musl), kept in a volume
# by docker-compose so the host's node_modules never shadow them.
COPY package.json package-lock.json ./
RUN npm ci

COPY . .

EXPOSE 5173
CMD ["npm", "run", "dev"]
