From 3051329d8c47d55311b93fac18b167e754eadb3b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 14 Apr 2026 20:43:17 +0000 Subject: [PATCH 1/2] Update legacy Flask handler base images to Python 3.13 Agent-Logs-Url: https://github.com/Shared-Reality-Lab/IMAGE-server/sessions/bff92bad-6589-4d75-ae74-8ded6795df25 Co-authored-by: jeffbl <2095406+jeffbl@users.noreply.github.com> --- handlers/hello-svg-handler/Dockerfile | 6 ++++-- handlers/multistage-diagram-tactile-svg/Dockerfile | 8 +++++--- handlers/ocr-handler/Dockerfile | 4 ++-- handlers/photo-tactile-svg/Dockerfile | 8 +++++--- handlers/svg-depth-map/Dockerfile | 6 ++++-- handlers/svg-object-detection/Dockerfile | 8 +++++--- handlers/svg-semantic-seg/Dockerfile | 8 +++++--- 7 files changed, 30 insertions(+), 18 deletions(-) diff --git a/handlers/hello-svg-handler/Dockerfile b/handlers/hello-svg-handler/Dockerfile index 413e9f6ec..11bb12ff3 100644 --- a/handlers/hello-svg-handler/Dockerfile +++ b/handlers/hello-svg-handler/Dockerfile @@ -1,6 +1,8 @@ -FROM python:3.10 +FROM python:3.13 -RUN apt-get install libcairo2 curl +RUN apt-get update && \ + apt-get install -y --no-install-recommends libcairo2 curl ca-certificates && \ + rm -rf /var/lib/apt/lists/* RUN adduser --disabled-password python WORKDIR /usr/src/app diff --git a/handlers/multistage-diagram-tactile-svg/Dockerfile b/handlers/multistage-diagram-tactile-svg/Dockerfile index 1bc9b19f2..4fc481733 100644 --- a/handlers/multistage-diagram-tactile-svg/Dockerfile +++ b/handlers/multistage-diagram-tactile-svg/Dockerfile @@ -1,6 +1,8 @@ -FROM python:3.10 +FROM python:3.13 -RUN apt-get install libcairo2 curl +RUN apt-get update && \ + apt-get install -y --no-install-recommends libcairo2 curl ca-certificates && \ + rm -rf /var/lib/apt/lists/* RUN adduser --disabled-password python WORKDIR /usr/src/app @@ -19,4 +21,4 @@ USER python HEALTHCHECK --interval=60s --timeout=10s --start-period=120s --retries=5 CMD curl -f http://localhost:80/health || exit 1 -CMD ["gunicorn", "tactile_svg:app", "-b", "0.0.0.0:80", "--capture-output", "--log-level=debug" ] \ No newline at end of file +CMD ["gunicorn", "tactile_svg:app", "-b", "0.0.0.0:80", "--capture-output", "--log-level=debug" ] diff --git a/handlers/ocr-handler/Dockerfile b/handlers/ocr-handler/Dockerfile index 0c8444a19..f79eda361 100644 --- a/handlers/ocr-handler/Dockerfile +++ b/handlers/ocr-handler/Dockerfile @@ -1,6 +1,6 @@ -FROM python:3.9.5-alpine +FROM python:3.13-alpine3.22 -RUN apk add --no-cache curl && adduser --disabled-password python +RUN apk add --no-cache curl ca-certificates && adduser --disabled-password python WORKDIR /app ENV PATH="/home/python/.local/bin:${PATH}" diff --git a/handlers/photo-tactile-svg/Dockerfile b/handlers/photo-tactile-svg/Dockerfile index 827cfa932..031c928db 100644 --- a/handlers/photo-tactile-svg/Dockerfile +++ b/handlers/photo-tactile-svg/Dockerfile @@ -1,6 +1,8 @@ -FROM python:3.10 +FROM python:3.13 -RUN apt-get install libcairo2 curl +RUN apt-get update && \ + apt-get install -y --no-install-recommends libcairo2 curl ca-certificates && \ + rm -rf /var/lib/apt/lists/* RUN adduser --disabled-password python WORKDIR /usr/src/app @@ -19,4 +21,4 @@ USER python HEALTHCHECK --interval=60s --timeout=10s --start-period=120s --retries=5 CMD curl -f http://localhost:80/health || exit 1 -CMD ["gunicorn", "tactile_svg:app", "-b", "0.0.0.0:80", "--capture-output", "--log-level=debug" ] \ No newline at end of file +CMD ["gunicorn", "tactile_svg:app", "-b", "0.0.0.0:80", "--capture-output", "--log-level=debug" ] diff --git a/handlers/svg-depth-map/Dockerfile b/handlers/svg-depth-map/Dockerfile index a803ad000..f8a9fbb84 100644 --- a/handlers/svg-depth-map/Dockerfile +++ b/handlers/svg-depth-map/Dockerfile @@ -1,6 +1,8 @@ -FROM python:3.10 +FROM python:3.13 -RUN apt-get install libcairo2 curl +RUN apt-get update && \ + apt-get install -y --no-install-recommends libcairo2 curl ca-certificates && \ + rm -rf /var/lib/apt/lists/* RUN adduser --disabled-password python WORKDIR /usr/src/app diff --git a/handlers/svg-object-detection/Dockerfile b/handlers/svg-object-detection/Dockerfile index 66b2ef278..9f47cae82 100644 --- a/handlers/svg-object-detection/Dockerfile +++ b/handlers/svg-object-detection/Dockerfile @@ -1,6 +1,8 @@ -FROM python:3.10 +FROM python:3.13 -RUN apt-get install libcairo2 curl +RUN apt-get update && \ + apt-get install -y --no-install-recommends libcairo2 curl ca-certificates && \ + rm -rf /var/lib/apt/lists/* RUN adduser --disabled-password python WORKDIR /usr/src/app @@ -19,4 +21,4 @@ USER python HEALTHCHECK --interval=60s --timeout=10s --start-period=120s --retries=5 CMD curl -f http://localhost:80/health || exit 1 -CMD ["gunicorn", "od_svg:app", "-b", "0.0.0.0:80", "--capture-output", "--log-level=debug" ] \ No newline at end of file +CMD ["gunicorn", "od_svg:app", "-b", "0.0.0.0:80", "--capture-output", "--log-level=debug" ] diff --git a/handlers/svg-semantic-seg/Dockerfile b/handlers/svg-semantic-seg/Dockerfile index 47dc5f9b1..34ec4c991 100644 --- a/handlers/svg-semantic-seg/Dockerfile +++ b/handlers/svg-semantic-seg/Dockerfile @@ -1,6 +1,8 @@ -FROM python:3.10 +FROM python:3.13 -RUN apt-get install libcairo2 curl +RUN apt-get update && \ + apt-get install -y --no-install-recommends libcairo2 curl ca-certificates && \ + rm -rf /var/lib/apt/lists/* RUN adduser --disabled-password python WORKDIR /usr/src/app @@ -19,4 +21,4 @@ USER python HEALTHCHECK --interval=60s --timeout=10s --start-period=120s --retries=5 CMD curl -f http://localhost:80/health || exit 1 -CMD ["gunicorn", "sem_seg_svg:app", "-b", "0.0.0.0:80", "--capture-output", "--log-level=debug" ] \ No newline at end of file +CMD ["gunicorn", "sem_seg_svg:app", "-b", "0.0.0.0:80", "--capture-output", "--log-level=debug" ] From 1093e21b5203f753ea670291f736abc72e7a1664 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 14 Apr 2026 20:48:20 +0000 Subject: [PATCH 2/2] Fix OCR handler Python 3.13 image selection Agent-Logs-Url: https://github.com/Shared-Reality-Lab/IMAGE-server/sessions/bff92bad-6589-4d75-ae74-8ded6795df25 Co-authored-by: jeffbl <2095406+jeffbl@users.noreply.github.com> --- handlers/ocr-handler/Dockerfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/handlers/ocr-handler/Dockerfile b/handlers/ocr-handler/Dockerfile index f79eda361..e0cbc0a26 100644 --- a/handlers/ocr-handler/Dockerfile +++ b/handlers/ocr-handler/Dockerfile @@ -1,6 +1,9 @@ -FROM python:3.13-alpine3.22 +FROM python:3.13-slim -RUN apk add --no-cache curl ca-certificates && adduser --disabled-password python +RUN apt-get update && \ + apt-get install -y --no-install-recommends curl ca-certificates && \ + rm -rf /var/lib/apt/lists/* && \ + adduser --disabled-password python WORKDIR /app ENV PATH="/home/python/.local/bin:${PATH}"