perf: 优化 Dockerfile

This commit is contained in:
吴小白
2022-11-15 17:24:56 +08:00
parent 7061ce7c97
commit 7bfa21260c
2 changed files with 56 additions and 44 deletions

View File

@@ -11,6 +11,9 @@ action="${1-start}"
service="${2-all}"
trap cleanup EXIT
rm -f /opt/jumpserver/tmp/*.pid
if [[ "$action" == "bash" || "$action" == "sh" ]];then
bash
elif [[ "$action" == "sleep" ]];then
@@ -19,4 +22,3 @@ elif [[ "$action" == "sleep" ]];then
else
python jms "${action}" "${service}"
fi