solar/frontend/Dockerfile

15 lines
282 B
Docker

FROM node:22-alpine
WORKDIR /app
# Install deps first for better layer caching
COPY package.json ./
RUN npm install
COPY . .
EXPOSE 5173
# Install deps at start so mounted volume has node_modules (recharts etc.)
CMD ["sh", "-c", "npm install && npm run dev -- --host 0.0.0.0"]