ENTRYPOINT - Fixed Container Executable
DK · DockerfileENTRYPOINT ["executable", "arg1"]
ENTRYPOINT command arg1ENTRYPOINT ["python", "manage.py"]
CMD ["runserver", "0.0.0.0:8000"]Note ENTRYPOINT sets the main executable. CMD then provides default arguments that users can override. Together: ENTRYPOINT ["python", "manage.py"] + CMD ["runserver"] means the user can run docker run myapp migrate to swap the subcommand.