From 9ac154690a12f9f751a9d5048cdfae1972697896 Mon Sep 17 00:00:00 2001 From: Brian McMahon Date: Tue, 5 May 2026 11:47:27 -0700 Subject: [PATCH] hotfix(deploy): install git in Lambda Dockerfile MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Phase 2 Lambda deploy job has been failing on: ERROR: Cannot find command 'git' - do you have 'git' installed and in your PATH? The Lambda Python 3.12 base image (public.ecr.aws/lambda/python:3.12) doesn't ship with git, but the Dockerfile uses `pip install ... @ git+https://...` which requires it. Surfaced today when PR #159's post-merge Deploy fired against a fresh build (vs the prior in-flight image which had a cached install layer that masked the gap). Fix: same one-line microdnf install applied to alpha-engine-research Dockerfile after PR #105's lib-public flip. AL2023 minimal package manager; image-size impact ~25MB. Out of scope: the FromPlatformFlagConstDisallowed warning (line 1) about `--platform=linux/amd64` is a separate buildkit lint that doesn't block builds — leave for a follow-up. Test plan - [x] Diff parity with alpha-engine-research Dockerfile (same line) - [ ] Deploy workflow re-runs cleanly post-merge Co-Authored-By: Claude Opus 4.7 (1M context) --- Dockerfile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Dockerfile b/Dockerfile index b1043d8..7ff58e4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,15 @@ FROM --platform=linux/amd64 public.ecr.aws/lambda/python:3.12 +# Install git — required for ``pip install git+https://...`` of +# alpha-engine-lib below. The Lambda Python 3.12 base image does not +# include git; pip's git-cloning command fails with "Cannot find +# command 'git'" without this. Same fix applied to alpha-engine-research +# Dockerfile after PR #105's lib-public flip exposed the gap. Caught +# in alpha-engine-data 2026-05-05 when PR #159's deploy job failed +# with the same error. ``microdnf`` is the AL2023 minimal package +# manager; ``-y`` auto-confirms. +RUN microdnf install -y git && microdnf clean all + # Install dependencies. alpha-engine-lib is installed from public git+https # with the [flow_doctor] extra only — the [arcticdb,rag] extras in # requirements.txt are intentionally NOT pulled here, since Lambda only