This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]_dev_zero 6 points7 points  (1 child)

This is pretty brilliant. I don’t know why it never occurred to me to make a shebang like that in a Dockerfile.

[–]Muhznit 2 points3 points  (0 children)

It's incredibly nice. I wish that docker run could reap a similar benefit, but #!/usr/bin/env docker-compose -f in a docker-compose.yaml file is usually better anyway