Skip to content

Commit 7013299

Browse files
committed
Add removing of old images
1 parent c9ba02a commit 7013299

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

build.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ def build_image():
3030
# For dockerfile temporarily switch folders
3131
oldpwd = os.getcwd()
3232
os.chdir(SCRIPT_FOLDER)
33+
run_with_stdout("docker image rm --force cpp-env:1.0")
3334
if run_with_stdout("docker image build . "
3435
"--file app/Dockerfile.build --tag cpp-env:1.0") != 0:
3536
print("Docker build failed.")

0 commit comments

Comments
 (0)