13 lines
147 B
Bash
13 lines
147 B
Bash
#!/bin/sh
|
|
set -e
|
|
mkdir -p /app/data
|
|
if [ -d /app/.git ]; then
|
|
cd /app
|
|
git pull
|
|
else
|
|
cd /app
|
|
git clone "$GIT_REPO_URL" .
|
|
fi
|
|
npm i
|
|
exec "$@"
|