Do not use multiple CMD

Metadata

ID: docker-best-practices/multiple-entrypoint

Language: Docker

Severity: Notice

Category: Best Practices

Description

Do not use multiple ENTRYPOINT instructions, only the last one is used.

Non-Compliant Code Examples

FROM awesomeimage
ENTRYPOINT /foo/bar
ENTRYPOINT /foo/baz

Compliant Code Examples

FROM awesomeimage
ENTRYPOINT /foo/bar