#!
(pronounced shebang) is a Unix convention that's typically used for scripting languages like Python and Bash. This abuses it to let you package applications in a cross-distro and cross-platform way. This example Dockerfile is a fullstack server that includes a backend, a database and a UI, all in a single file.
It's kinda like Cosmopolitan Libc but for packaging applications.
Why not?
Probably not.
If you want.
Maybe.
No.
Yes.
chmod +x ./Dockerfile
./Dockerfile
Then go to http://127.0.0.1:8080
I ported it over to Val Town!
Code: https://www.val.town/v/stevekrouse/backend_in_a_file
Live demo: https://stevekrouse-backend_in_a_file.web.val.run
I think there may be a frontend / css bug - would love any help debugging it or a PR on my val.