17 lines
381 B
Docker
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;"] |