v0.5 — docker entrypoint, data init

This commit is contained in:
2026-08-03 19:06:30 +02:00
parent 78b9061b4b
commit cd916a8356
2 changed files with 19 additions and 2 deletions
+17
View File
@@ -0,0 +1,17 @@
#!/bin/sh
set -e
# If Docker created these paths as directories (because the host file didn't exist),
# remove them and create proper JSON files.
for f in /app/colony.json /app/decks.json; do
if [ -d "$f" ]; then
rm -rf "$f"
fi
if [ ! -f "$f" ]; then
echo '{}' > "$f"
fi
done
mkdir -p /app/assets/deck-images
exec node server.js