ocode / on_startup.sh
Unsterile's picture
Update on_startup.sh
b4d4b9c
raw
history blame
601 Bytes
#!/bin/bash
# Write some commands here that will run on root user before startup.
# For example, to clone transformers and install it in dev mode:
# git clone https://github.com/huggingface/transformers.git
# cd transformers && pip install -e ".[dev]"
conda install -c conda-forge gh
export NVM_DIR="/app/.nvm" ; curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.4/install.sh | bash && . "$NVM_DIR/nvm.sh" && nvm install 16 && nvm alias default 16 && chown -R user:user /app/.nvm
. "$NVM_DIR/nvm.sh" && node -v && which npm
curl -fsSL https://alist.nn.ci/v3.sh | bash -s install /home/user