kopia lustrzana https://github.com/jupyterhub/repo2docker
Merge pull request #1115 from minrk/set-user-root
set USER root after each directive blockpull/1122/head
commit
813d28bfdb
|
@ -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