ThinkR-open / dockerfiler

Easy Dockerfile Creation from R
https://thinkr-open.github.io/dockerfiler/
Other
176 stars 26 forks source link

dont run docker as root #11

Closed ColinFay closed 2 months ago

ColinFay commented 2 years ago

Be sure that created dockerfile dont run golem as root by default

Migrated from https://github.com/ThinkR-open/golem/issues/115

VincentGuyader commented 2 months ago

We will do it in two steps. We will allow a user to choose the USER to use in dockerfiler::dock_from_renv. However, we will let golem decide who launches the app. This allows us to distinguish the user who installs the dependencies from the user who launches the application. Thus, there will be a user parameter in both dockerfiler::dock_from_renv and golem::add_dockerfile_withrenv*.