entrypoint
覆盖默认entrypoint。
entrypoint: /code/entrypoint.sh
entrypoint也可以是列表形式:
entrypoint: ["php", "-d", "memory_limit=-1", "vendor/bin/phpunit"]
Note:
设置的entrypoint会覆盖服务的镜像中Dockerfile中的ENTRYPOINT指令,并且还会清除镜像中的默认命令,这意味的Dockerfile中的CMD指令会被忽略。
Last updated
Was this helpful?