This application is a simple echo server that listens on port 8080 and returns the request path as the response.
See https://docs.dagger.io/install to install Dagger.
$ dagger functions
$ dagger call test --source=.
$ dagger call build --source=.
$ dagger call dev --source=. up --ports 8080:8080
...
$ curl http://localhost:8080/hello-world/
Echo: /hello-world/
$ dagger call publish --source=.
...
ttl.sh/echo-server:1h@sha256:3e85eb...
...
$ # Test the published image
$ docker run --rm -p 8080:8080 --pull=always ttl.sh/echo-server:1h