diff --git a/.claude/settings.local.json b/.claude/settings.local.json index 8bfe3f5..c36aea9 100644 --- a/.claude/settings.local.json +++ b/.claude/settings.local.json @@ -37,7 +37,8 @@ "Bash(git rm:*)", "Bash(git checkout:*)", "Bash(git push:*)", - "Bash(Start-Sleep -Seconds 10)" + "Bash(Start-Sleep -Seconds 10)", + "Bash(npm install:*)" ], "deny": [], "ask": [] diff --git a/Dockerfile.frontend b/Dockerfile.frontend deleted file mode 100644 index f9d9d4c..0000000 --- a/Dockerfile.frontend +++ /dev/null @@ -1,38 +0,0 @@ -# Multi-stage build for Angular frontend -FROM node:18-alpine as frontend-builder - -# Install dependencies for native modules -RUN apk add --no-cache python3 make g++ - -WORKDIR /frontend - -# Copy package files first for better layer caching -COPY frontend/package*.json ./ - -# Clean install dependencies with explicit platform targeting -# This ensures esbuild and other native modules are built for Alpine Linux -RUN npm ci --force - -# Copy frontend source (excluding node_modules via .dockerignore) -COPY frontend/src ./src -COPY frontend/public ./public -COPY frontend/angular.json ./ -COPY frontend/tsconfig*.json ./ - -# Build the Angular app for production -RUN npm run build --verbose - -# Production image with nginx -FROM nginx:alpine - -# Copy built Angular app from the browser subdirectory -COPY --from=frontend-builder /frontend/dist/frontend/browser /usr/share/nginx/html - -# Copy nginx configuration -COPY nginx.conf /etc/nginx/nginx.conf - -# Expose port 80 -EXPOSE 80 - -# Start nginx -CMD ["nginx", "-g", "daemon off;"] \ No newline at end of file diff --git a/Dockerfile.frontend.prebuilt b/Dockerfile.frontend.prebuilt deleted file mode 100644 index 4574cc1..0000000 --- a/Dockerfile.frontend.prebuilt +++ /dev/null @@ -1,15 +0,0 @@ -# Dockerfile for pre-built Angular frontend (air-gapped/restricted environments) -# Build the Angular app locally first: cd frontend && npm run build:prod -# Then use this Dockerfile to package the pre-built files - -FROM nginx:alpine - -# Copy pre-built Angular app to nginx -COPY frontend/dist/frontend/browser /usr/share/nginx/html - -# Copy nginx configuration -COPY nginx.conf /etc/nginx/conf.d/default.conf - -EXPOSE 80 - -CMD ["nginx", "-g", "daemon off;"] diff --git a/Dockerfile.frontend.simple b/Dockerfile.frontend.simple deleted file mode 100644 index 5ba7e3b..0000000 --- a/Dockerfile.frontend.simple +++ /dev/null @@ -1,14 +0,0 @@ -# Simple approach - build on host and copy dist folder -FROM nginx:alpine - -# Copy pre-built Angular app -COPY frontend/dist/frontend /usr/share/nginx/html - -# Copy nginx configuration -COPY nginx.conf /etc/nginx/nginx.conf - -# Expose port 80 -EXPOSE 80 - -# Start nginx -CMD ["nginx", "-g", "daemon off;"] \ No newline at end of file diff --git a/frontend/package.json b/frontend/package.json index ddf8987..44c48b5 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -36,6 +36,13 @@ "karma-coverage": "~2.2.0", "karma-jasmine": "~5.1.0", "karma-jasmine-html-reporter": "~2.1.0", - "typescript": "~5.7.2" + "typescript": "~5.7.2", + "vite": "6.3.6" + }, + "resolutions": { + "vite": "6.3.6" + }, + "overrides": { + "vite": "6.3.6" } } \ No newline at end of file