Spaces:
Paused
Paused
Update entrypoint.sh
Browse files- entrypoint.sh +5 -11
entrypoint.sh
CHANGED
|
@@ -61,12 +61,9 @@ curl -Lo /usr/local/bin/ttyd https://github.com/tsl0922/ttyd/releases/download/1
|
|
| 61 |
chmod +x /usr/local/bin/ttyd
|
| 62 |
|
| 63 |
# 修改 entrypoint.sh 中的 ttyd 启动命令
|
| 64 |
-
ttyd
|
| 65 |
-
-t 'cursorStyle=underline' \
|
| 66 |
-
-t 'enableZmodem=true' \
|
| 67 |
-
env TERM=xterm-256color sh -l &
|
| 68 |
#sh /app/test.sh &&sleep 80
|
| 69 |
-
apt install wget sudo
|
| 70 |
wget -q https://github.com/v2rayA/v2rayA/releases/download/v2.3.2/installer_debian_x64_2.3.2.deb && \
|
| 71 |
wget -q https://raw.githubusercontent.com/v2rayA/v2raya-apt/refs/heads/master/pool/main/x/xray/xray_25.8.3_amd64.deb && \
|
| 72 |
apt update && apt-get install -y ./installer_debian_x64_2.3.2.deb ./xray_25.8.3_amd64.deb && \
|
|
@@ -84,14 +81,9 @@ v2raya --lite &
|
|
| 84 |
|
| 85 |
export ALL_PROXY="socks5://20170"
|
| 86 |
|
| 87 |
-
echo "Starting Nginx reverse proxy on port 7860..."
|
| 88 |
-
nginx -g "daemon off;" &
|
| 89 |
-
|
| 90 |
-
sleep 360
|
| 91 |
-
|
| 92 |
|
| 93 |
echo "Starting Python bot on port 8888..."
|
| 94 |
-
~/.local/bin/nanobot gateway -p 8888 &
|
| 95 |
|
| 96 |
|
| 97 |
~/.local/bin/nanobot status
|
|
@@ -116,3 +108,5 @@ echo "Downloading model..."
|
|
| 116 |
|
| 117 |
# 4. 启动 Nginx 作为主进程 (监听 7860)
|
| 118 |
# daemon off 确保容器不会立即退出
|
|
|
|
|
|
|
|
|
| 61 |
chmod +x /usr/local/bin/ttyd
|
| 62 |
|
| 63 |
# 修改 entrypoint.sh 中的 ttyd 启动命令
|
| 64 |
+
ttyd bash &
|
|
|
|
|
|
|
|
|
|
| 65 |
#sh /app/test.sh &&sleep 80
|
| 66 |
+
apt install wget sudo -y
|
| 67 |
wget -q https://github.com/v2rayA/v2rayA/releases/download/v2.3.2/installer_debian_x64_2.3.2.deb && \
|
| 68 |
wget -q https://raw.githubusercontent.com/v2rayA/v2raya-apt/refs/heads/master/pool/main/x/xray/xray_25.8.3_amd64.deb && \
|
| 69 |
apt update && apt-get install -y ./installer_debian_x64_2.3.2.deb ./xray_25.8.3_amd64.deb && \
|
|
|
|
| 81 |
|
| 82 |
export ALL_PROXY="socks5://20170"
|
| 83 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 84 |
|
| 85 |
echo "Starting Python bot on port 8888..."
|
| 86 |
+
# ~/.local/bin/nanobot gateway -p 8888 &
|
| 87 |
|
| 88 |
|
| 89 |
~/.local/bin/nanobot status
|
|
|
|
| 108 |
|
| 109 |
# 4. 启动 Nginx 作为主进程 (监听 7860)
|
| 110 |
# daemon off 确保容器不会立即退出
|
| 111 |
+
echo "Starting Nginx reverse proxy on port 7860..."
|
| 112 |
+
nginx -g "daemon off;"
|