Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
3.5.0
-
None
Description
Would it be useful to save space by sharing layers by having one image from another? 🤔 Something like the *java11-ubuntu as the "base" with r and python variants FROM that and the r-python being FROM, probably, the larger one of those?
Rough example Dockerfiles
FROM eclipse-temurin:11-jre-focal
# user stuff, install common deps, etc
...
# download/extract spark (maybe keeping python and R files too? they seem relatively small compared to the rest)
# other images in separate Dockerfiles FROM spark:3.3.0-scala2.12-java11-ubuntu # get "/opt/spark/{python,R}/" contents if not kept in base # install python or R (and things like R_HOME)