feat: docker entrypoint with environment variables (#1112)

This commit is contained in:
Jonas Plum
2024-11-06 01:52:48 +01:00
committed by GitHub
parent d1cf75ab79
commit baba5b7a45
2 changed files with 18 additions and 1 deletions

15
docker/entrypoint.sh Normal file
View File

@@ -0,0 +1,15 @@
#!/bin/bash
# Set the flags
FLAGS=""
if [ -n "$CATALYST_FLAGS" ]; then
FLAGS="$CATALYST_FLAGS"
fi
# Set the app url
APP_URL=""
if [ -n "$CATALYST_APP_URL" ]; then
APP_URL="$CATALYST_APP_URL"
fi
/usr/local/bin/catalyst serve --http 0.0.0.0:8080 --flags "$FLAGS" --app-url "$APP_URL"