diff --git a/containthedocs-build.sh b/containthedocs-build.sh index bc29e8f..d59b0a8 100755 --- a/containthedocs-build.sh +++ b/containthedocs-build.sh @@ -2,13 +2,12 @@ set -x -COMMAND="make -C docs html" - +COMMAND=(/bin/bash -c "sudo pip install -r requirements.txt -U ; make -C docs clean html") . ./containthedocs-image -exec sudo docker run --rm -it \ +exec docker run --rm -t \ -v "$PWD":"$PWD" --workdir "$PWD" \ ${DOCKER_RUN_ARGS} \ -e "LOCAL_USER_ID=$(id -u)" \ - ${DOC_IMG} ${COMMAND} + ${DOC_IMG} "${COMMAND[@]}"