3 ms·
One thing that’s missing from the RUN command is ‘-u’, for unbuffered output (essential when using the default loggers). But there are simpler ways to build de
by rcarmo 9y ago
One thing that’s missing from the RUN command is ‘-u’, for unbuffered output (essential when using the default loggers).
But there are simpler ways to build dev images using build stages... I maintain two for my own use, one for web dev and another for ML/back-end stuff:
- https://github.com/rcarmo/alpine-python https://github.com/rcarmo/alpine-python
- https://github.com/rcarmo/ubuntu-python https://github.com/rcarmo/ubuntu-python (because musl doesn’t play well with some binary dependencies)
I also tend to rely on uwsgi or sanic rather than gunicorn (which feels a bit dated to me) but those boil down to personal preference.
- hartror 9y ago+1 for `-u` this one caught me out when I first used python services in docker.