dockerfile healthcheck

This commit is contained in:
Igor Loskutov
2025-12-18 17:38:49 -05:00
parent 96c5a1d1ea
commit e3d796bc8c

View File

@@ -29,6 +29,10 @@ FROM nginx:alpine
# Copy built static files # Copy built static files
COPY --from=builder /app/build /usr/share/nginx/html COPY --from=builder /app/build /usr/share/nginx/html
# Healthcheck for container orchestration
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
CMD wget --no-verbose --tries=1 --spider http://localhost/ || exit 1
# Expose port # Expose port
EXPOSE 80 EXPOSE 80