# Sites Renderer Dev Image (Node 22 to satisfy Vite requirements)
FROM node:22-alpine

WORKDIR /app

# Copy package manifests first for better caching
COPY package*.json ./

RUN npm install --legacy-peer-deps

# Copy source (still bind-mounted at runtime, but needed for initial run)
COPY . .

EXPOSE 5176

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

