Fix build: generate settings.json from env vars at runtime
Some checks failed
Deploy / deploy (push) Failing after 53s
Some checks failed
Deploy / deploy (push) Failing after 53s
settings.json is gitignored (contains token). entrypoint.sh writes it from OUTLINE_URL / OUTLINE_TOKEN env vars on container start. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
15
entrypoint.sh
Normal file
15
entrypoint.sh
Normal file
@@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
# Generate settings.json from environment variables at container start.
|
||||
# OUTLINE_URL and OUTLINE_TOKEN must be set (e.g. via docker-compose env / .env file).
|
||||
|
||||
cat > /work/settings.json <<EOF
|
||||
{
|
||||
"source": { "url": "${OUTLINE_URL}", "token": "${OUTLINE_TOKEN}" },
|
||||
"target": { "url": "${OUTLINE_URL}", "token": "${OUTLINE_TOKEN}" },
|
||||
"sync": { "allow_deletions": false }
|
||||
}
|
||||
EOF
|
||||
|
||||
exec "$@"
|
||||
Reference in New Issue
Block a user