File size: 332 Bytes
6f9df95
 
 
 
 
 
 
 
 
 
 
 
 
 
d417527
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash

echo "Cloning private repository..."

git clone https://${GITLAB_DEPLOY_USER}:${GITLAB_DEPLOY_TOKEN}@gitlab.com/${GITLAB_USERNAME}/${GITLAB_REPO}.git repo

cd repo

echo "Installing dependencies..."

pip install -r requirements.txt

echo "Starting FastAPI..."

uvicorn app:app --host 0.0.0.0 --port 7860 --no-access-log