We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec1ab51 commit b6fe97aCopy full SHA for b6fe97a
cmd.sh
@@ -1,4 +1,10 @@
1
#!/bin/bash
2
set -e
3
4
-su $DEFAULT_USER -c "npm install --production"
+if [ "$RUNTIME" == "python" ] || [ "$RUNTIME" == "python2" ] || [ "$RUNTIME" == "python2.7" ]; then
5
+ su $DEFAULT_USER -c "pip install --requirement requirements.txt --upgrade --target ."
6
+elif [ "$RUNTIME" == "python3" ] || [ "$RUNTIME" == "python3.6" ] || [ "$RUNTIME" == "python3.7" ]; then
7
+ su $DEFAULT_USER -c "pip3 install --requirement requirements.txt --upgrade --target ."
8
+else
9
+ su $DEFAULT_USER -c "npm install --production"
10
+fi
0 commit comments