diff --git a/Dockerfile b/Dockerfile index 12d5f71..df37a10 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] diff --git a/bin/chief-keeper b/bin/chief-keeper index 417aad8..657b2c2 100755 --- a/bin/chief-keeper +++ b/bin/chief-keeper @@ -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