orztv commited on
Commit
4c150ac
·
1 Parent(s): 0cd5842
Files changed (3) hide show
  1. Dockerfile +1 -2
  2. src/sshx.sh +0 -1
  3. src/startup.sh +4 -1
Dockerfile CHANGED
@@ -20,5 +20,4 @@ RUN chmod +x ${WORKDIR}/*.sh
20
  RUN ${WORKDIR}/setup.sh \
21
  && ${WORKDIR}/sshx.sh
22
 
23
- # 使用完整路径指定 startup.sh
24
- ENTRYPOINT ["${WORKDIR}/startup.sh"]
 
20
  RUN ${WORKDIR}/setup.sh \
21
  && ${WORKDIR}/sshx.sh
22
 
23
+ ENTRYPOINT ["/app/startup.sh"]
 
src/sshx.sh CHANGED
@@ -27,7 +27,6 @@ if [ -f "$TARGET_DIR/sshx" ]; then
27
  echo "sshx has been successfully downloaded and extracted to $TARGET_DIR"
28
  chmod +x "$TARGET_DIR/sshx"
29
  echo "sshx 版本: $($TARGET_DIR/sshx -V)"
30
- echo "$TARGET_DIR/sshx --help"
31
  else
32
  echo "Failed to extract sshx. Please check the download URL and try again."
33
  exit 1
 
27
  echo "sshx has been successfully downloaded and extracted to $TARGET_DIR"
28
  chmod +x "$TARGET_DIR/sshx"
29
  echo "sshx 版本: $($TARGET_DIR/sshx -V)"
 
30
  else
31
  echo "Failed to extract sshx. Please check the download URL and try again."
32
  exit 1
src/startup.sh CHANGED
@@ -1,6 +1,9 @@
1
  #!/bin/sh
2
 
3
  # 运行sshx
4
- $WORKDIR/sshx/sshx --help
5
 
6
  # 如果需要,可以在这里添加其他启动命令
 
 
 
 
1
  #!/bin/sh
2
 
3
  # 运行sshx
4
+ /app/sshx/sshx --help
5
 
6
  # 如果需要,可以在这里添加其他启动命令
7
+
8
+ # 保持容器运行
9
+ tail -f /dev/null