Skip to content

Commit 9f1de68

Browse files
committed
Add DISABLE_REQUIREMENTS environment variable to entrypoints to skip "pip install -r requirements.txt" invocation
1 parent 31cf1a0 commit 9f1de68

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

entrypoint-linux.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ fi
3131

3232
cd $WORKDIR
3333

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

3838
echo "$@"
3939

entrypoint-windows.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ fi
3131

3232
cd $WORKDIR
3333

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

3838
echo "$@"
3939

0 commit comments

Comments
 (0)