docker
This commit is contained in:
parent
4eae8f44af
commit
45158c21f7
|
|
@ -1,11 +1,13 @@
|
|||
#!/bin/ash
|
||||
#!/bin/sh
|
||||
|
||||
# 使用环境变量生成config.json
|
||||
echo "{
|
||||
\"addr\": \"$ADDR\",
|
||||
\"api_url\": \"$API_URL\",
|
||||
\"api_key\": $API_KEY
|
||||
}" > config.json
|
||||
}" > /app/config.json
|
||||
|
||||
cat /app/config.json
|
||||
|
||||
# 执行传入的命令
|
||||
exec "$@"
|
||||
Loading…
Reference in New Issue
Block a user