From 2ac947ad170e985f7776a30a0279f703f2274cb9 Mon Sep 17 00:00:00 2001 From: Harsh Mishra Date: Sun, 18 Oct 2026 09:05:49 +0530 Subject: [PATCH] emr-serverless-python-dependencies: install curl before the Poetry installer The build image is localstack/localstack:latest, which no longer ships curl since 2026.10.0. `curl ... | python3 -` then still exits 0 (python3 reads an empty script) and the build fails one step later with `poetry: command not found`. Install curl first, as localstack-pro-samples does. Claude-Session: https://claude.ai/code/session_01DZfDmzUBPqNAu3yFKyfCNM --- emr-serverless-python-dependencies/Dockerfile-localstack | 2 ++ 1 file changed, 2 insertions(+) diff --git a/emr-serverless-python-dependencies/Dockerfile-localstack b/emr-serverless-python-dependencies/Dockerfile-localstack index 6db7f53..ac8fc3a 100644 --- a/emr-serverless-python-dependencies/Dockerfile-localstack +++ b/emr-serverless-python-dependencies/Dockerfile-localstack @@ -10,6 +10,8 @@ ENV PATH="$VIRTUAL_ENV/bin:$PATH" # EMR 6.x uses Python 3.7 - limit Poetry version to 1.5.1 ENV POETRY_VERSION=1.5.1 RUN python3 -m pip install --upgrade pip +# The LocalStack image no longer ships curl +RUN apt-get update && apt-get install -y --no-install-recommends curl && rm -rf /var/lib/apt/lists/* RUN curl -sSL https://install.python-poetry.org | python3 - ENV PATH="$PATH:/root/.local/bin"