This is a request for comments and opinions. I am fairly new to Docker.
I want containers for production and development (maybe unit-test too) for a Python project. My search pointed toward the multi-stage Dockerfile (and multiple docker-compose to run them).
All of the articles, comments and examples I found on the subject start with a development image and use it as a FROM for a production build (some add a test image in between). This makes no sense to me. It involves test-file clean-up, removing dev/test tools and packages, thus keeping track of why each package was installed. Error prone.
Should we not start with the minimal 'production' setup first? Then add the necessary debug tools and development configuration for a dev image?
What's the proper (guideline?) way of doing things and why? I want to do things clean.
Thanks in advance. GG