Files
py-ailbl-user-profile/apps/build.sh
QuangMinh_123 a86300a368
Some checks failed
K8S Fission Deployment / Deployment fission functions (push) Failing after 20s
FirstProfile
2025-12-04 16:24:54 +07:00

15 lines
373 B
Bash
Executable File

#!/bin/sh
ID=$( grep "^ID=" /etc/os-release | awk -F= '{print $2}' )
if [ "${ID}" = "debian" ]
then
apt-get update && apt-get install -y gcc libpq-dev python3-dev
else
apk update && apk add gcc postgresql-dev python3-dev
fi
if [ -f ${SRC_PKG}/requirements.txt ]
then
pip3 install -r ${SRC_PKG}/requirements.txt -t ${SRC_PKG}
fi
cp -r ${SRC_PKG} ${DEPLOY_PKG}