kopia lustrzana https://github.com/jupyterhub/repo2docker
set USER root after each directive block
matches expectations in the directive sequences not strictly required after preassemble because we have no root steps between preassemble and assemble, so we could remove the `last_user = "root"` there instead includes regression testpull/1115/head
rodzic
bf99b93dae
commit
945c45299f
|
@ -100,6 +100,8 @@ COPY --chown={{ user }}:{{ user }} {{ src }} {{ dst }}
|
|||
{% for sd in build_script_directives -%}
|
||||
{{ sd }}
|
||||
{% endfor %}
|
||||
# ensure root user after build scripts
|
||||
USER root
|
||||
|
||||
# Allow target path repo is cloned to be configurable
|
||||
ARG REPO_DIR=${HOME}
|
||||
|
@ -138,6 +140,8 @@ COPY --chown={{ user }}:{{ user }} src/{{ src }} ${REPO_DIR}/{{ dst }}
|
|||
{% for sd in preassemble_script_directives -%}
|
||||
{{ sd }}
|
||||
{% endfor %}
|
||||
# ensure root user after preassemble scripts
|
||||
USER root
|
||||
|
||||
# Copy stuff.
|
||||
COPY --chown={{ user }}:{{ user }} src/ ${REPO_DIR}
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
libsodium-dev
|
|
@ -0,0 +1 @@
|
|||
install.packages("viridisLite")
|
|
@ -0,0 +1 @@
|
|||
r-4.1-2021-10-22
|
|
@ -0,0 +1,6 @@
|
|||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
apt list
|
||||
apt list | grep libsodium-dev
|
||||
# make sure we got R
|
||||
which R
|
Ładowanie…
Reference in New Issue