diff --git a/.travis.yml b/.travis.yml index fb356f0e..8c499feb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,7 +12,7 @@ jobs: script: - mkdir output - chmod 777 output - - docker run -t -u opendps -v $(readlink -f .):/parent:ro -v $(readlink -f .)/output:/output opendps /parent/docker/build.sh + - docker run --rm -t -u opendps -v $(readlink -f .):/parent:ro -v $(readlink -f .)/output:/output opendps /parent/docker/build.sh deploy: provider: releases diff --git a/build_binaries.sh b/build_binaries.sh index 0a77b777..a8b761bb 100755 --- a/build_binaries.sh +++ b/build_binaries.sh @@ -14,4 +14,4 @@ docker build -t opendps_$PROJECT docker mkdir -p output chmod 777 output -docker run -t -u opendps -v $(readlink -f .):/parent:ro -v $(readlink -f .)/output:/output opendps_$PROJECT /parent/docker/build.sh "$@" +docker run --rm -t -u opendps -v $(readlink -f .):/parent:ro -v $(readlink -f .)/output:/output opendps_$PROJECT /parent/docker/build.sh "$@"