fix: Install curl in production image and improve health check
- Install curl in runner stage for health checks - Increase health check timeout to 90 attempts (3 minutes) - Improve health check logic to prioritize HTTP endpoint - Add better debugging output during health check wait - Show container status and logs during health check failures
This commit is contained in:
@@ -57,6 +57,9 @@ WORKDIR /app
|
||||
ENV NODE_ENV=production
|
||||
ENV NEXT_TELEMETRY_DISABLED=1
|
||||
|
||||
# Install curl for health checks
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends curl && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Create a non-root user
|
||||
RUN addgroup --system --gid 1001 nodejs
|
||||
RUN adduser --system --uid 1001 nextjs
|
||||
|
||||
Reference in New Issue
Block a user