Open agoose77 opened 3 years ago
Oh wow, I didn't know that was possible. You have great skills @agoose77 .
I'm going to give this a go and it should be possible to remove the 2nd dockerfile we have (dockerfiledependancies).
Thanks for this really useful tip
My pleasure! Apologies, I originally failed to tag your name and github only put 'shimwell'!
Super it looks like it saves about 200 lines of code. Nice
I have tried to add the contribution as a co-author commit to try to give you credit for your great suggestion. Hope that is ok?
Hi @Shimwell
You can build different parts of a Dockerfile by target, which enables you to specify whether to build the final image, or just the dependencies, e.g.
and