diff --git a/Dockerfile b/Dockerfile index d9834b3..e2b0141 100644 --- a/Dockerfile +++ b/Dockerfile @@ -33,6 +33,9 @@ RUN pnpm build # Stage 3: Runner (serve static files) FROM nginx:alpine AS runner +# Install curl for health check +RUN apk add --no-cache curl + # Copy custom nginx config COPY --from=builder /app/nginx.conf /etc/nginx/nginx.conf @@ -44,7 +47,7 @@ EXPOSE 80 # Health check HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \ - CMD wget --no-verbose --tries=1 --spider http://localhost/ || exit 1 + CMD curl -f http://localhost/ || exit 1 # Start nginx CMD ["nginx", "-g", "daemon off;"]