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 <