You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
current Dockerfile example I showed in class was this:
FROM rocker/rstudio
WORKDIR /home/rstudio
# you can use remotes::install_version() as well instead of using renvCOPY --chown=rstudio:rstudio renv.lock .
COPY --chown=rstudio:rstudio renv renv
COPY --chown=rstudio:rstudio .Rprofile .
RUN ls -alh
USER rstudio
RUN Rscript -e "renv::repair()"USER root
The USER swapping seems really hacky, as well as the chown bits.
It does mean we have to talk + review more of whoami and ls -alh commands, but there might be a simpler way to fully setup the container instead of this way.
I think the previous class was using conda mainly so this wasn't a problem.
The text was updated successfully, but these errors were encountered:
current
Dockerfile
example I showed in class was this:The
USER
swapping seems really hacky, as well as thechown
bits.It does mean we have to talk + review more of
whoami
andls -alh
commands, but there might be a simpler way to fully setup the container instead of this way.I think the previous class was using
conda
mainly so this wasn't a problem.The text was updated successfully, but these errors were encountered: