Closed gpbenton closed 3 years ago
That is exactly what I mean. It should be straightforward, I just haven't had a free weekend to try it out.
New image released as gpbenton/engmqttclient:2.0.0. 81.6MB as opposed to 872MB. Added some example to the docker-compose on how to add debug.
The Dockerfile already is multi-stage, it utilises the FROM and RUN directives. A dev environment using gcc is created as an intermediate image. The final image for RUN contains this env and the sources. What could be applied in order to reduce image size, is to remove this build image from the final image, viz:-
Is this what you mean?