IMO, Dockerfiles need a shebang.
Replying to @drq@mastodon.ml
Can't you just put one in there though? #!/usr/bin/docker up or something
Replying to @drq@mastodon.ml
@drq well… # in Dockerfile denotes comments already, meaning that shebang mechanism can work just fine with a simple wrapper script with no hackery that would ignore the file's first line.
Someone's even done it already: https://github.com/JakeWharton/dockerfile-shebang
GitHubGitHub - JakeWharton/dockerfile-shebang: Treat your Dockerfiles as self-contained, editable scriptsTreat your Dockerfiles as self-contained, editable scripts - JakeWharton/dockerfile-shebangReplying to @drq@mastodon.ml
@drq I would also add .desktop files to things that needs shebang,
Replying to @a1ba@suya.place
@a1ba Yes!
Replying to @drq@mastodon.ml
@drq but they do...
#!/bin/env -S docker build -t name -f
