I am somehow newbie in docker, so bear with me for a potentially stupid question.
From what I understood, if I want to have a running container and not an executable, you end it up with a "command". Okey.
So if what I want is a container serving a django app, I have to add something like:
python manage.py runserver 0.0.0.0:8000
Now the question is: Do we add this at the end of the dockerfile that defines the image?
Or do I add this command in the docker compose that uses the image, like this?
services:
web:
build: .
command: python manage.py runserver 0.0.0.0:8000
[...]