This commit is contained in:
2026-07-01 16:49:35 +05:00
parent 04765b8414
commit 90fb42251c

View File

@@ -1,23 +1,12 @@
#!/bin/sh
set -e
if [ -n "$GIT_REPO_URL" ]; then
mkdir -p /app/data
if [ -d /app/.git ]; then
cd /app
git stash --include-untracked 2>/dev/null || true
git pull origin master 2>&1
git pull
else
rm -rf /app
git clone "$GIT_REPO_URL" /app
fi
fi
cd /app
mkdir -p data
if [ -z "$(ls node_modules 2>/dev/null)" ]; then
echo "Installing dependencies..."
npm install --omit=dev
git clone "$GIT_REPO_URL" .
fi
npm i
exec "$@"