-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: provider a docker image with ull feature supports
- Loading branch information
1 parent
9a7427d
commit 7282f62
Showing
3 changed files
with
41 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,14 @@ | ||
#!/bin/bash | ||
|
||
# PORT 默认值为 6780 | ||
LIBRO_PORT=6780 | ||
# 检查 PORT 环境变量是否设置 | ||
if [ -z "$PORT" ]; then | ||
echo "PORT 环境变量未设置" | ||
exit 1 | ||
else | ||
echo "PORT 环境变量设置为 $PORT" | ||
LIBRO_PORT=$PORT | ||
fi | ||
|
||
# 启动 libro,并将 PORT 环境变量传递给它 | ||
exec libro --port="$PORT" --notebook-dir="/home/admin/workspace" | ||
exec libro --port="$LIBRO_PORT" --notebook-dir="/home/admin/workspace" |