diff --git a/build-with-docker.sh b/build-with-docker.sh index 38b2545..8614547 100755 --- a/build-with-docker.sh +++ b/build-with-docker.sh @@ -27,5 +27,9 @@ fi docker build ./docker | tee ./dockerBuildLog.txt -chcon -R -t container_file_t ./ + +if [[ $OSTYPE == *"linux"* ]]; then + chcon -R -t container_file_t ./ +fi + docker run -it --rm --volume ./:/root/spade $(docker images | awk '{print $3}' | awk 'NR==2') \ No newline at end of file