![](https://secure.gravatar.com/avatar/6e692faf04b51988f266a31864bc1efe.jpg?s=120&d=mm&r=g)
14 Dec
2022
14 Dec
'22
6:15 a.m.
Thangalin via ntg-context
Thoughts? Suggestions for improvement?
If you are looking for technical suggestions, every RUN line will
create a layer even if you delete files later. I'd suggest making the
final image by copying the root directory of a multistage container,
e.g. https://adriancitu.com/2022/03/11/7-ways-to-build-lighter-linux-containers/
Alternatively, do all the steps before installing ConTeXt in a
multistage container, and run all shell commands that install ConTeXt
in one action, then you get two layers and the lower one only changes
if a font changes (or alpine:latest).
--
Leah Neukirchen