kopia lustrzana https://github.com/jupyterhub/repo2docker
Move where npm config is set
rodzic
ef1497dddf
commit
df92b99cdb
|
@ -96,12 +96,6 @@ class CondaBuildPack(BaseImage):
|
||||||
chown -R ${NB_USER}:${NB_USER} ${NPM_DIR}
|
chown -R ${NB_USER}:${NB_USER} ${NPM_DIR}
|
||||||
""",
|
""",
|
||||||
),
|
),
|
||||||
(
|
|
||||||
"${NB_USER}",
|
|
||||||
r"""
|
|
||||||
${NB_PYTHON_PREFIX}/bin/npm config --global set prefix ${NPM_DIR}
|
|
||||||
""",
|
|
||||||
),
|
|
||||||
]
|
]
|
||||||
|
|
||||||
major_pythons = {"2": "2.7", "3": "3.7"}
|
major_pythons = {"2": "2.7", "3": "3.7"}
|
||||||
|
|
|
@ -48,6 +48,9 @@ echo "installing notebook env:"
|
||||||
cat /tmp/environment.yml
|
cat /tmp/environment.yml
|
||||||
time mamba env create -p ${NB_PYTHON_PREFIX} -f /tmp/environment.yml
|
time mamba env create -p ${NB_PYTHON_PREFIX} -f /tmp/environment.yml
|
||||||
|
|
||||||
|
# Set NPM config
|
||||||
|
${NB_PYTHON_PREFIX}/bin/npm config --global set prefix ${NPM_DIR}
|
||||||
|
|
||||||
# empty conda history file,
|
# empty conda history file,
|
||||||
# which seems to result in some effective pinning of packages in the initial env,
|
# which seems to result in some effective pinning of packages in the initial env,
|
||||||
# which we don't intend.
|
# which we don't intend.
|
||||||
|
|
Ładowanie…
Reference in New Issue