yadinae commited on
Commit
1e8cbb7
·
verified ·
1 Parent(s): cd76221

Create entrypoint.sh

Browse files
Files changed (1) hide show
  1. entrypoint.sh +10 -0
entrypoint.sh ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+ # 激活 NVM 环境变量
3
+ export NVM_DIR="/root/.nvm"
4
+ [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
5
+
6
+ # 启动备份服务
7
+ python3 /sync.py &
8
+
9
+ # 启动 IDE
10
+ exec code-server --bind-addr 0.0.0.0:7860 --auth password --disable-telemetry /root