CUB-116: Scaffold React frontend — Vite, TS, Tailwind
Some checks failed
Dev Build / build-test (pull_request) Failing after 2m13s

This commit is contained in:
2026-05-06 10:09:35 -04:00
parent 42285c5dac
commit e2be3bffa7
67 changed files with 2039 additions and 11068 deletions

View File

@@ -1,28 +1,20 @@
# Stage 1: Build the Angular application
FROM node:22-alpine AS build
# Multi-stage build for production
FROM node:22-alpine AS builder
WORKDIR /app
# Copy package files first for better layer caching
COPY package.json package-lock.json ./
COPY package*.json ./
RUN npm ci
# Copy source and build
COPY . .
RUN npx ng build --configuration production
RUN npm run build
# Stage 2: Serve static files with nginx
# Production stage — serve with nginx
FROM nginx:alpine
# Remove default nginx config
RUN rm /etc/nginx/conf.d/default.conf
# Copy custom nginx config
COPY --from=builder /app/dist /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf
# Copy built Angular artifacts from build stage
COPY --from=build /app/dist/frontend/browser /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
CMD ["nginx", "-g", "daemon off;"]