fix: ensure dist files are cleared at container startup

This commit is contained in:
2026-05-13 14:12:02 +02:00
parent 3f6da13299
commit 00fb8b3b2f
2 changed files with 12 additions and 3 deletions

9
docker/entrypoint.sh Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/sh
set -e
echo "[$(date -Iseconds)] Clearing dist/ directory..."
rm -rf /app/dist/*
echo "[$(date -Iseconds)] dist/ cleared"
echo "[$(date -Iseconds)] Starting server..."
exec /app/main_server