add --rm flag for the windows docs build

This commit is contained in:
Stefano Franz 2019-01-29 16:29:16 +00:00 committed by Stefano Franz
parent 875d2eb02a
commit b5d80e0c3c

View File

@ -68,7 +68,7 @@ task apidocs(dependsOn: ['dokka', 'dokkaJavadoc'])
task makeDocs(type: Exec) {
if (Os.isFamily(Os.FAMILY_WINDOWS)) {
commandLine "docker", "run", "-v", "${project.projectDir}:/opt/docs_builder", "corda/docs-builder:latest", "bash", "-c", "make-docsite.sh"
commandLine "docker", "run", "--rm", "-v", "${project.projectDir}:/opt/docs_builder", "corda/docs-builder:latest", "bash", "-c", "make-docsite.sh"
} else {
commandLine "bash", "-c", "docker run --rm --user \$(id -u):\$(id -g) -v ${project.projectDir}:/opt/docs_builder corda/docs-builder:latest bash -c make-docsite.sh"
}