Docker

Docker

Made by DeepSource

Multiple HEALTHCHECK instructions DOK-W1007

Bug risk
Major

Providing more than one HEALTHCHECK instruction per stage is confusing, error prone and possibly makes for larger than necessary Docker images.

Bad Practice

FROM busybox:1.28
HEALTHCHECK CMD /bin/healthcheck
# [...]
HEALTHCHECK CMD /bin/something

Recommended

FROM busybox:1.28
HEALTHCHECK CMD /bin/healthcheck

# or,

FROM busybox:1.28
HEALTHCHECK NONE