hotfix(deploy): install git in Lambda Dockerfile#160
Merged
Conversation
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) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
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 doesn't ship with git, but the Dockerfile uses `pip install ... @ git+https://...` for alpha-engine-lib. Surfaced today by PR #159's post-merge Deploy run against a fresh build.
Fix
Adds `RUN microdnf install -y git && microdnf clean all` before the pip install. Same one-line fix applied to alpha-engine-research Dockerfile after PR #105's lib-public flip exposed the same gap there.
Test plan
Out of scope
The `FromPlatformFlagConstDisallowed` warning on line 1 (
--platform=linux/amd64) is a separate buildkit lint — doesn't block builds, leave for follow-up.🤖 Generated with Claude Code