diff --git a/backend/services/backup-service/Dockerfile b/backend/services/backup-service/Dockerfile index 8b8e04fe..9acde4af 100644 --- a/backend/services/backup-service/Dockerfile +++ b/backend/services/backup-service/Dockerfile @@ -24,10 +24,10 @@ FROM node:20-slim AS production WORKDIR /app -# Install OpenSSL and wget for health checks +# Install OpenSSL and curl for health checks RUN apt-get update && apt-get install -y --no-install-recommends \ openssl \ - wget \ + curl \ && rm -rf /var/lib/apt/lists/* # Create non-root user for security @@ -55,8 +55,8 @@ USER nestjs EXPOSE 3002 # Health check -HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \ - CMD wget --no-verbose --tries=1 --spider http://localhost:3002/health || exit 1 +HEALTHCHECK --interval=30s --timeout=3s --start-period=40s --retries=3 \ + CMD curl -f http://localhost:3002/health || exit 1 # Start the application CMD ["node", "dist/src/main.js"]