Skip to content

Commit

Permalink
update start.sh, support installing extra apt package on startup if a…
Browse files Browse the repository at this point in the history
…pt-requirements.txt exists...
  • Loading branch information
itaru2622 committed Oct 5, 2023
1 parent c2608dc commit 286064d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions start.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/bin/bash

if [ -r "./apt-requirements.txt" ]; then
apt install -y `cat ./apt-requirements.txt`
fi

if [ -r "./setup.py" ] || [ -r "./setup.cfg" ] || [ -r "./pyproject.toml" ]; then
pip3 install .
elif [ -r "${py_requirements}" ]; then
Expand Down

0 comments on commit 286064d

Please sign in to comment.