PPlamenu
HomeTrendingLive feedsPeopleGroupsRulesStaff
Sign in
PPlamenu
HomeTrendingLive feedsPeopleGroupsRulesStaff
Sign in
Dr. Quadragon ❌@drq@mastodon.ml
⁨17⁩d

IMO, Dockerfiles need a shebang.

⁨Jul⁩ ⁨28⁩, ⁨2026⁩, ⁨20:08⁩ru
4000
Open original page
BoostsQuotesFavs
Григорий Клюшников@grishka@friends.grishka.me
⁨17⁩d

Replying to @⁨drq@mastodon.ml⁩

Can't you just put one in there though? #!/usr/bin/docker up or something

0000
Open original page
BoostsQuotesFavs
D:\side\>:idle:@dside@mastodon.ml
⁨17⁩d

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

Treat your Dockerfiles as self-contained, editable scripts - JakeWharton/dockerfile-shebangGitHubGitHub - JakeWharton/dockerfile-shebang: Treat your Dockerfiles as self-contained, editable scriptsTreat your Dockerfiles as self-contained, editable scripts - JakeWharton/dockerfile-shebang
0000
Open original page
BoostsQuotesFavs
bruh/a1ba@a1ba@suya.place
⁨17⁩d

Replying to @⁨drq@mastodon.ml⁩

@drq I would also add .desktop files to things that needs shebang,
1000
Open original page
BoostsQuotesFavs
Dr. Quadragon ❌@drq@mastodon.ml
⁨17⁩d

Replying to @⁨a1ba@suya.place⁩

@a1ba Yes!

0000
Open original page
BoostsQuotesFavs
Ваня@bano@mastodon.ml
edited⁨17⁩d

Replying to @⁨drq@mastodon.ml⁩

@drq but they do...

#!/bin/env -S docker build -t name -f

0000
Open original page
BoostsQuotesFavs