Initial version of Dockerfile#56
Conversation
|
DO NOT MERGE |
|
Would it be beneficial to combine some of the "RUN" cmds into a script that is added to the image? That way you can have one RUN layer and not so many. |
|
@ipbabble what is best practice with Docker? :-) |
|
I don't think it's fully decided yet. One could and would argue that having it in the Dockerfile is better because of transparency. i.e. the way you do it is correct. But because of the layering and the inability to squash layers then it becomes way too many layers for your image. You might also wish to pull some stuff out of the script if you think that you don't want certain steps run over and over again on build. So maybe I've answered my own question ;-) i.e. it's perhaps not beneficial during dev. but beneficial when you've figured out what layers you are ok with as you move out of dev. |
|
That's probably a great point to add to the tutorial, when we document this. |
No description provided.