Skip to content

Commit

Permalink
Add --rm to build docker options
Browse files Browse the repository at this point in the history
Removes the containers after finishing instead of leaving them hanging.
  • Loading branch information
lainets committed Jun 13, 2023
1 parent 5e7920a commit 968f664
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/docker_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ def build(
command = [
"docker", "run",
*env_args,
"--rm",
"-v", f"{host_path}:/content",
"--workdir", "/content",
image,
Expand Down

0 comments on commit 968f664

Please sign in to comment.