Files
IOT_application/fuse-starter-v20.0.0/Dockerfile
2025-10-16 19:28:45 +05:30

17 lines
381 B
Docker

# Stage 1: Build Angular application
FROM node:18-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm ci --legacy-peer-deps
COPY . .
# Development build (much faster - 2-3 minutes)
RUN npm run build
# Stage 2: Serve with Nginx
FROM nginx:alpine AS production
COPY --from=builder /app/dist/fuse-angular /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]