Skip to content

Commit 324c201

Browse files
author
Jeannette
committed
Remove venv from bin file
1 parent ef4d079 commit 324c201

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ COPY requirements.txt ./
2222
RUN pip3 install --no-cache-dir -r requirements.txt
2323

2424
# Run run-chief-keeper.sh when the container launches
25-
CMD ["/bin/bash", "-c", "./run-chief-keeper.sh"]
25+
CMD ["./run-chief-keeper.sh"]
2626

bin/chief-keeper

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@
22

33
dir="$(dirname "$0")"/..
44

5-
. $dir/_virtualenv/bin/activate || exit
5+
if [ -f "$dir/_virtualenv/bin/activate" ]; then
6+
. "$dir/_virtualenv/bin/activate"
7+
else
8+
echo "Virtual environment not needed."
9+
fi
10+
611

712
export PYTHONPATH=$PYTHONPATH:$dir:$dir/lib/pymaker
813

0 commit comments

Comments
 (0)