The eval command is used because the regular source or . methods might not work reliably in some container environments. This approach executes the activation script's contents directly
eval
source
.
eval "$(cat /app/venv/bin/activate)"