From c9f79c2af483628285a3f1f9ed27b1977da88036 Mon Sep 17 00:00:00 2001 From: hotwa Date: Mon, 27 May 2024 14:34:59 +0800 Subject: [PATCH] update file --- Dockerfile.jupyterhub | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Dockerfile.jupyterhub b/Dockerfile.jupyterhub index 1ce0acd..e203a64 100755 --- a/Dockerfile.jupyterhub +++ b/Dockerfile.jupyterhub @@ -21,10 +21,11 @@ apt-get install -y tzdata ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime echo 'Asia/Shanghai' > /etc/timezone dpkg-reconfigure -f noninteractive tzdata -sudo apt-get remove --purge libnode72:amd64 -y -curl -fsSL https://deb.nodesource.com/setup_${NODEJS_VERSION}.x | sudo -E bash - # 安装所需的软件包 -apt-get install -y python3 python3-pip gcc g++ build-essential nodejs npm gdebi-core curl wget openssh-server vim lrzsz net-tools sudo git +apt-get install -y python3 python3-pip gcc g++ build-essential gdebi-core curl wget openssh-server vim lrzsz net-tools sudo git +curl -fsSL https://deb.nodesource.com/setup_${NODEJS_VERSION}.x | sudo -E bash - +apt-get update +apt-get install -y nodejs npm # 创建新用户 useradd -m -s /bin/bash ${CREATE_USER} echo "${CREATE_USER}:${CREATE_USER_PASSWD}" | chpasswd @@ -34,7 +35,8 @@ EOT RUN <