api / entrypoint.sh
rayhanzuck's picture
Update entrypoint.sh
3eb1a09 verified
Raw History Blame Contribute Delete
384 Bytes
#!/bin/bash
echo "Downloading project from ZIP_URL=$ZIP_URL"
mkdir -p /tmp/project
curl -L "$ZIP_URL" -o /tmp/project.zip
unzip /tmp/project.zip -d /tmp/project
cd $(find /tmp/project -type f -name "package.json" -exec dirname {} \; | head -n 1)
echo "Installing dependencies..."
npm install
echo "Building app..."
npm run build
echo "Starting app..."
export PORT=7860
npm start