by muaddirac · 11y ago · 0 comments
Is there any good way to bundle up, say, a Flask app on Gunicorn into a single, minimal-dependency executable? Or a Rails app? I haven't found any satisfactory solutions. There are projects that will compile python down, but that doesn't seem to cover the WSGI server part (gunicorn, etc).
You don't need to build a single executable for this approach to work. You could use something like buildroot to build your runtime docker image.
docker-nano was doing something to that effect, see for example nano/node.js: https://github.com/Docker-nano/Node.js
For Ruby, additionally "bundle install --standalone --path [..]" gets your far.