diff --git a/backend/ecmk_fetcher/handler/Dockerfile b/backend/ecmk_fetcher/handler/Dockerfile index aebcd7aa..d0ad2e64 100644 --- a/backend/ecmk_fetcher/handler/Dockerfile +++ b/backend/ecmk_fetcher/handler/Dockerfile @@ -1,4 +1,7 @@ -FROM mcr.microsoft.com/playwright/python:v1.58.0-jammy +# jammy (Ubuntu 22.04) ships Python 3.10, which lacks enum.StrEnum — used by +# domain/modelling/measure_type.py, pulled in transitively via the copied +# domain/ package. noble (Ubuntu 24.04) ships Python 3.12. +FROM mcr.microsoft.com/playwright/python:v1.58.0-noble # Install AWS Lambda RIE ADD https://github.com/aws/aws-lambda-runtime-interface-emulator/releases/latest/download/aws-lambda-rie /usr/local/bin/aws-lambda-rie diff --git a/backend/pashub_fetcher/handler/Dockerfile b/backend/pashub_fetcher/handler/Dockerfile index 575b8565..d20d00d0 100644 --- a/backend/pashub_fetcher/handler/Dockerfile +++ b/backend/pashub_fetcher/handler/Dockerfile @@ -1,4 +1,8 @@ -FROM mcr.microsoft.com/playwright/python:v1.58.0-jammy +# jammy (Ubuntu 22.04) ships Python 3.10, which lacks enum.StrEnum — used by +# domain/modelling/measure_type.py, which the handler pulls in transitively +# (handler -> pashub_service -> documents_parser.parser -> ... -> domain). +# noble (Ubuntu 24.04) ships Python 3.12, matching the project's 3.11+ standard. +FROM mcr.microsoft.com/playwright/python:v1.58.0-noble # Install AWS Lambda RIE ADD https://github.com/aws/aws-lambda-runtime-interface-emulator/releases/latest/download/aws-lambda-rie /usr/local/bin/aws-lambda-rie