force redeploy without devsecops v3
All checks were successful
Build and Deploy Angular App HIS / build (push) Successful in 43s
Build and Deploy Angular App HIS / deploy (push) Successful in 53s

This commit is contained in:
m.imanpour
2025-12-10 01:24:55 +03:30
parent 6627a97eb2
commit 08c693bede
2 changed files with 5 additions and 2 deletions

View File

@@ -16,10 +16,13 @@ RUN npm run build -- --configuration production
# ===== Stage 2: Serve static files with Nginx (app service) ===== # ===== Stage 2: Serve static files with Nginx (app service) =====
FROM nginx:alpine FROM nginx:alpine
# Install curl for healthcheck (nginx:alpine doesn't have wget/curl by default)
RUN apk add --no-cache curl
# Remove default Nginx files # Remove default Nginx files
RUN rm -rf /usr/share/nginx/html/* RUN rm -rf /usr/share/nginx/html/*
# Copy built Angular app (updated for Angular 17+ default output) # Copy built Angular app
COPY --from=builder /app/dist/niayesh-hospital/browser /usr/share/nginx/html COPY --from=builder /app/dist/niayesh-hospital/browser /usr/share/nginx/html
# Copy app-specific Nginx config for SPA routing # Copy app-specific Nginx config for SPA routing

View File

@@ -6,7 +6,7 @@ services:
expose: expose:
- "80" - "80"
healthcheck: healthcheck:
test: ["CMD", "wget", "--spider", "http://localhost:80"] test: ["CMD", "curl", "-f", "http://localhost:80"] # Use curl (now installed) for reliable check; -f fails on non-200
interval: 30s interval: 30s
timeout: 10s timeout: 10s
retries: 3 retries: 3