From 08c693bede93de727a61d27eb5c9ac13a2bd5045 Mon Sep 17 00:00:00 2001 From: "m.imanpour" Date: Wed, 10 Dec 2025 01:24:55 +0330 Subject: [PATCH] force redeploy without devsecops v3 --- Dockerfile | 5 ++++- docker-compose.yml | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index e9bd42a..8ead542 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,10 +16,13 @@ RUN npm run build -- --configuration production # ===== Stage 2: Serve static files with Nginx (app service) ===== 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 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 app-specific Nginx config for SPA routing diff --git a/docker-compose.yml b/docker-compose.yml index a5cfde4..13ac7ec 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -6,7 +6,7 @@ services: expose: - "80" 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 timeout: 10s retries: 3