Skip to content

Commit

Permalink
fix: prune layer cache before build (#590)
Browse files Browse the repository at this point in the history
Removes any cached layers before building.
  • Loading branch information
achingbrain authored Dec 25, 2024
1 parent cf2e6e4 commit 2c944e6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions transport-interop/impl/js/v0.45/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ update-lock-file: image.json
docker rm $$CONTAINER_ID

image.json:
docker builder prune -af
docker build -t ${image_name} -f ./Dockerfile .
docker image inspect ${image_name} -f "{{.Id}}" | \
xargs -I {} echo "{\"imageID\": \"{}\"}" > $@
Expand Down
1 change: 1 addition & 0 deletions transport-interop/impl/js/v0.46/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ update-lock-file: image.json
docker rm $$CONTAINER_ID

image.json:
docker builder prune -af
docker build -t ${image_name} -f ./Dockerfile .
docker image inspect ${image_name} -f "{{.Id}}" | \
xargs -I {} echo "{\"imageID\": \"{}\"}" > $@
Expand Down
1 change: 1 addition & 0 deletions transport-interop/impl/js/v1.x/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ update-lock-file: image.json
docker rm $$CONTAINER_ID

image.json:
docker builder prune -af
docker build -t ${image_name} -f ./Dockerfile .
docker image inspect ${image_name} -f "{{.Id}}" | \
xargs -I {} echo "{\"imageID\": \"{}\"}" > $@
Expand Down
1 change: 1 addition & 0 deletions transport-interop/impl/js/v2.x/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ update-lock-file: image.json
docker rm $$CONTAINER_ID

image.json:
docker builder prune -af
docker build -t ${image_name} -f ./Dockerfile .
docker image inspect ${image_name} -f "{{.Id}}" | \
xargs -I {} echo "{\"imageID\": \"{}\"}" > $@
Expand Down

0 comments on commit 2c944e6

Please sign in to comment.