fix/hadolint-DL3025-healthcheck-json
main
Fix hadolint warning DL3025: Use arguments JSON notation for CMD and ENTRYPOINT arguments.
Before:
CMD curl -f http://localhost:8787/health || exit 1
After:
CMD ["curl", "-f", "http://localhost:8787/health"]
curl -f already returns a non-zero exit code on failure, so the || exit 1 is redundant.
curl -f
|| exit 1
No dependencies set.
The note is not visible to the blocked user.
Fix hadolint warning DL3025: Use arguments JSON notation for CMD and ENTRYPOINT arguments.
Before:
After:
curl -falready returns a non-zero exit code on failure, so the|| exit 1is redundant.