remove unnecessary docker files, downgrade vite
This commit is contained in:
@@ -37,7 +37,8 @@
|
|||||||
"Bash(git rm:*)",
|
"Bash(git rm:*)",
|
||||||
"Bash(git checkout:*)",
|
"Bash(git checkout:*)",
|
||||||
"Bash(git push:*)",
|
"Bash(git push:*)",
|
||||||
"Bash(Start-Sleep -Seconds 10)"
|
"Bash(Start-Sleep -Seconds 10)",
|
||||||
|
"Bash(npm install:*)"
|
||||||
],
|
],
|
||||||
"deny": [],
|
"deny": [],
|
||||||
"ask": []
|
"ask": []
|
||||||
|
|||||||
@@ -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;"]
|
|
||||||
@@ -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;"]
|
|
||||||
@@ -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;"]
|
|
||||||
2851
frontend/package-lock.json
generated
2851
frontend/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -36,6 +36,13 @@
|
|||||||
"karma-coverage": "~2.2.0",
|
"karma-coverage": "~2.2.0",
|
||||||
"karma-jasmine": "~5.1.0",
|
"karma-jasmine": "~5.1.0",
|
||||||
"karma-jasmine-html-reporter": "~2.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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user