fix(docker): implement entrypoint for env var support
build / Go-Build (push) Successful in 1m36s
docker / docker (push) Successful in 4m58s

This commit is contained in:
2026-05-29 00:40:14 +02:00
parent da6abf0cbe
commit f58d8ef280
2 changed files with 16 additions and 1 deletions
+13
View File
@@ -0,0 +1,13 @@
#!/bin/sh
CMD="svg-templater"
if [ -n "$API_KEY" ]; then
CMD="$CMD --frontendkey $API_KEY"
fi
if [ -n "$DATA_DIR" ]; then
CMD="$CMD --data $DATA_DIR"
fi
eval exec $CMD "$@"