I am trying to run a python script that resides in the directory of my shell script, but I cannot find out how to dynamically change directory in the shell script, so I could execute it reliably.
Most solutions I've seen are using features available in bash, but I can only use shell since I am using alpine
and do not want to install bash. The shell script is something like this:
export FLASK_APP="./app.py"
export FLASK_RUN_HOST='0.0.0.0'
export FLASK_RUN_PORT=5000
flask run
And app.py
is in the same directory of my script.