Spaces:
Runtime error
Runtime error
| set -e | |
| export WORK="/home/user/app" | |
| # 移除第三方 apt source | |
| rm -f /etc/apt/sources.list.d/*.list | |
| # 基本套件(包含 adduser、sudo) | |
| apt-get update && apt-get install -y --no-install-recommends \ | |
| curl \ | |
| ca-certificates \ | |
| sudo \ | |
| adduser \ | |
| git \ | |
| wget \ | |
| procps \ | |
| git-lfs \ | |
| zip \ | |
| unzip \ | |
| htop \ | |
| vim \ | |
| nano \ | |
| bzip2 \ | |
| libx11-6 \ | |
| build-essential \ | |
| libsndfile-dev \ | |
| python3-pip \ | |
| python3.12-venv \ | |
| cmake \ | |
| software-properties-common \ | |
| libvips-dev | |
| # nvtop | |
| add-apt-repository ppa:flexiondotorg/nvtop -y | |
| apt-get upgrade -y && apt-get install -y --no-install-recommends nvtop | |
| # Node.js + npm(用 NodeSource) | |
| curl -fsSL https://deb.nodesource.com/setup_21.x | bash - | |
| apt-get install -y nodejs npm | |
| npm install -g configurable-http-proxy | |
| npm install -g sharp | |
| # Miniconda | |
| curl -sLo /tmp/miniconda.sh https://repo.continuum.io/miniconda/Miniconda3-py39_4.10.3-Linux-x86_64.sh | |
| chmod +x /tmp/miniconda.sh | |
| /tmp/miniconda.sh -b -p /opt/miniconda | |
| rm /tmp/miniconda.sh | |
| # 清理 | |
| apt-get clean | |
| rm -rf /var/lib/apt/lists/* | |