From 9288c8543c12225a89f307b6aa48ef722ab68dec Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Fri, 7 Nov 2025 14:38:20 -0800 Subject: [PATCH] fix docker (#16342) --- Dockerfile | 4 ++++ docker/Dockerfile.non_root | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/Dockerfile b/Dockerfile index 6ab78d85e3..d9ea0d9a47 100644 --- a/Dockerfile +++ b/Dockerfile @@ -65,6 +65,10 @@ COPY --from=builder /wheels/ /wheels/ # Install the built wheel using pip; again using a wildcard if it's the only file RUN pip install *.whl /wheels/* --no-index --find-links=/wheels/ && rm -f *.whl && rm -rf /wheels +# Remove test files and keys from dependencies +RUN find /usr/lib -type f -path "*/tornado/test/*" -delete && \ + find /usr/lib -type d -path "*/tornado/test" -delete + # Install semantic_router and aurelio-sdk using script RUN chmod +x docker/install_auto_router.sh && ./docker/install_auto_router.sh diff --git a/docker/Dockerfile.non_root b/docker/Dockerfile.non_root index 6be115ba71..0cbdf761fe 100644 --- a/docker/Dockerfile.non_root +++ b/docker/Dockerfile.non_root @@ -69,6 +69,10 @@ RUN pip install *.whl /wheels/* --no-index --find-links=/wheels/ \ && rm -f *.whl \ && rm -rf /wheels +# Remove test files and keys from dependencies +RUN find /usr/lib -type f -path "*/tornado/test/*" -delete && \ + find /usr/lib -type d -path "*/tornado/test" -delete + # Install semantic_router and aurelio-sdk using script RUN chmod +x docker/install_auto_router.sh && ./docker/install_auto_router.sh