This can be the "base" of the AAW images. I noticed there is an environmental variable DEFAULT_JUPYTER_URL=/lab and it might be possible to have the SAME image for each of our offerings, but simply change that variable. So the RStudio image would be identical to the JupyterLab image but we'd change DEFAULT_JUPYTER_URL=/lab to DEFAULT_JUPYTER_URL=/rstudio. This may result in slightly less optmized (for size) images but it would reduce maintenence burden and as I've discovered already the below image does not take long to build.
ARG BASE_VERSION=2023-08-07
FROM jupyter/datascience-notebook:$BASE_VERSION
# Must be set in deepest image
ENV DEFAULT_JUPYTER_URL=/lab