From 671df571f64582fb2db72393e11b4bd719704902 Mon Sep 17 00:00:00 2001 From: isaiah-harville Date: Mon, 16 Nov 2026 21:14:55 -0600 Subject: [PATCH] fix(examples): build asyncio_reduce image from the pynumaflow root The Dockerfile copies pyproject.toml, uv.lock and pynumaflow/ from the package root, but the Makefile built with the example directory as the context. Docker Publish failed on main with '/pynumaflow: not found' since asyncio_reduce joined the publish matrix. Build from the package root with -f, like the other examples. Co-Authored-By: Claude Sonnet 5.5 Signed-off-by: isaiah-harville --- .../examples/reduce/asyncio_reduce/Makefile | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/packages/pynumaflow/examples/reduce/asyncio_reduce/Makefile b/packages/pynumaflow/examples/reduce/asyncio_reduce/Makefile index 24026bb6..80e8ec58 100644 --- a/packages/pynumaflow/examples/reduce/asyncio_reduce/Makefile +++ b/packages/pynumaflow/examples/reduce/asyncio_reduce/Makefile @@ -1,6 +1,7 @@ TAG ?= stable PUSH ?= false -IMAGE_REGISTRY = "quay.io/numaio/numaflow-python/asyncio-reduce:${TAG}" +IMAGE_REGISTRY = quay.io/numaio/numaflow-python/asyncio-reduce:${TAG} +DOCKER_FILE_PATH = examples/reduce/asyncio_reduce/Dockerfile .PHONY: update update: @@ -8,9 +9,14 @@ update: .PHONY: image-push image-push: update - docker buildx build -t ${IMAGE_REGISTRY} --platform linux/amd64,linux/arm64 . --push + cd ../../../ && docker buildx build \ + -f ${DOCKER_FILE_PATH} \ + -t ${IMAGE_REGISTRY} \ + --platform linux/amd64,linux/arm64 . --push .PHONY: image image: update - docker build -t ${IMAGE_REGISTRY} . + cd ../../../ && docker build \ + -f ${DOCKER_FILE_PATH} \ + -t ${IMAGE_REGISTRY} . @if [ "$(PUSH)" = "true" ]; then docker push ${IMAGE_REGISTRY}; fi