调整容器启动命令,支持优雅推出,添加Dockerfile,更新tar包

This commit is contained in:
jimorsm 2024-09-28 00:35:22 +08:00
parent e9e1f9c638
commit 09d3af63a1
3 changed files with 6 additions and 1 deletions

5
Dockerfile Normal file
View File

@ -0,0 +1,5 @@
FROM alpine
RUN apk add curl nftables
RUN sh <(curl -kfsSl https://raw.githubusercontent.com/jimorsm/ShellCrash/master/install.sh) -d /app && \
crash -l https://your-subscription-address
CMD [ "/app/start.sh","start" ]

Binary file not shown.

View File

@ -1909,7 +1909,7 @@ start)
if [ "$firewall_area" = "5" ]; then #主旁转发
[ -z $container_mode ] && stop_firewall || start_firewall skip_nameserver
elif [ -n $container_mode ]; then #容器内直接前台启动
bfstart && $COMMAND
bfstart && exec $COMMAND
elif [ "$start_old" = "已开启" ]; then
bfstart && start_old
elif [ -f /etc/rc.common -a "$(cat /proc/1/comm)" = "procd" ]; then