ENTRYPOINT — Fixed Container Executable
DK · Dockerfilesyntax
ENTRYPOINT ["executable", "arg1"]
ENTRYPOINT command arg1example
ENTRYPOINT ["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.