Skip to content

Commit

Permalink
Remove venv from bin file
Browse files Browse the repository at this point in the history
  • Loading branch information
jeannettemcd committed Nov 9, 2023
1 parent ef4d079 commit 324c201
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ COPY requirements.txt ./
RUN pip3 install --no-cache-dir -r requirements.txt

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

7 changes: 6 additions & 1 deletion bin/chief-keeper
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@

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

. $dir/_virtualenv/bin/activate || exit
if [ -f "$dir/_virtualenv/bin/activate" ]; then
. "$dir/_virtualenv/bin/activate"
else
echo "Virtual environment not needed."
fi


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

Expand Down

0 comments on commit 324c201

Please sign in to comment.