I have built a flask app and try to run the build.sh script to install the dependencies and start executing the file. But pip install -r requirements.txt and pip freeze > requirements.txt
are just skipped. Running the rest of the code for the build.sh file. I don’t know what I did wrong.
After execution the file the app will start with gunicorn my_app:flask_app.
Here is my built.sh file
set -o errexit
python3 -m venv .venv
echo “Virtual environment: $VIRTUAL_ENV”
pip freeze > requirements.txt
pip install -r requirements.txt
Thanks for advance!