Skip to content

Commit

Permalink
Add DISABLE_REQUIREMENTS environment variable to entrypoints to skip …
Browse files Browse the repository at this point in the history
…"pip install -r requirements.txt" invocation
  • Loading branch information
Toilal committed May 9, 2020
1 parent 31cf1a0 commit 9f1de68
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions entrypoint-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ fi

cd $WORKDIR

if [ -f requirements.txt ]; then
if [ -f requirements.txt ] && [ -z "$DISABLE_REQUIREMENTS" ]; then
pip install -r requirements.txt
fi # [ -f requirements.txt ]
fi

echo "$@"

Expand Down
4 changes: 2 additions & 2 deletions entrypoint-windows.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ fi

cd $WORKDIR

if [ -f requirements.txt ]; then
if [ -f requirements.txt ] && [ -z "$DISABLE_REQUIREMENTS" ]; then
pip install -r requirements.txt
fi # [ -f requirements.txt ]
fi

echo "$@"

Expand Down

0 comments on commit 9f1de68

Please sign in to comment.