I agree. I have provided Dockerfiles in work projects, and it was successful.
However, I found it difficult to run tasks using just the Dockerfile.
The containers became too large. And I had to write too long arguments for volume mounts and environment variables.
In the end, I had to include the steps for starting and running the containers in the README.
(I am deeply concerned about this issue. So I implemented a little tool called Lask, and it tried to solve this kind problems. https://github.com/lask-task-runner/lask )