Used to test s2i builder. This example uses thor gem, but it can be really used with anything, only cli file is needed, which will be executed as docker entrypoint.
Install s2i via preferred method. Then:
$ s2i build . ghcr.io/allanipl/s2i-ruby-cli:3.0-slim sample-app
[...]
Build completed successfully
$ docker run --rm sample-app
Commands:
cli hello_world # Prints hello world
cli help [COMMAND] # Describe available commands or one specific command
$ docker run --rm sample-app hello_world
Hello world!