diff --git a/handlers/hello-svg-handler/Dockerfile b/handlers/hello-svg-handler/Dockerfile index 413e9f6e..11bb12ff 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 1bc9b19f..4fc48173 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 0c8444a1..e0cbc0a2 100644 --- a/handlers/ocr-handler/Dockerfile +++ b/handlers/ocr-handler/Dockerfile @@ -1,6 +1,9 @@ -FROM python:3.9.5-alpine +FROM python:3.13-slim -RUN apk add --no-cache curl && 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}" diff --git a/handlers/photo-tactile-svg/Dockerfile b/handlers/photo-tactile-svg/Dockerfile index 827cfa93..031c928d 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 a803ad00..f8a9fbb8 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 66b2ef27..9f47cae8 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 47dc5f9b..34ec4c99 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" ]