force redeploy without devsecops v3
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user