Files
solar-pv-dashboard/frontend/Dockerfile
Mateusz Gruszczyński c5cc2efbac first commit
2026-03-23 15:56:18 +01:00

18 lines
273 B
Docker

FROM node:22-alpine AS build
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build
FROM nginx:1.28-alpine
COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=build /app/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]