Having a bunch of RUN statements in Dockerfile is an anti-pattern when
thinking of cloud deployments because of the number of overlays (and
bloat) it creates in the final image. However, it is far easier to
create a Dockerfile with multiple RUN statements during development.
The dot/scripts/ws script now mounts a user directory in /home, which
means that username, userid, groupname, and group id can all be inferred
from it by simply finding the first user (and only) user in /home.
When running the docker run, upon entering the entrypoint script when asked for username etc. I tried to modify home directory from /home/you to another directory the script didn't update the home directory name and i am greeted with the home directory still being /home/you.
While it is nice to have all the installers here, sometimes I need to
install something that doesn't have Docker already on it. For example,
when just running from within WSL2.
When someone changes the user on entry the default home directory should
change to match by the time it prompts for it (but still allow even that
to be changed).