chat-bot-backend / entrypoint.sh
abubasith86's picture
Update entrypoint.sh
424afe7 verified
raw
history blame contribute delete
415 Bytes
#!/usr/bin/env bash
set -e
WORKDIR=/home/user/app
mkdir -p "$WORKDIR"
cd "$WORKDIR"
rm -rf ./*
echo "Cloning app..."
git clone --depth 1 --branch main https://github.com/abubasith456/chat-bot-backend.git .
echo "Initializing submodules..."
git submodule init
git submodule update
echo "Installing dependencies..."
pip install --no-cache-dir -r requirements.txt
echo "Starting Python app..."
exec python main.py