Skip to content

fix(docker): Remove conflicting Python symlinks#1

Merged
eddalmond merged 5 commits intomainfrom
fix/dockerfile-python-symlinks
Feb 19, 2026
Merged

fix(docker): Remove conflicting Python symlinks#1
eddalmond merged 5 commits intomainfrom
fix/dockerfile-python-symlinks

Conversation

@eddalmond
Copy link
Owner

Problem

The Docker build for releases was failing with:

ln: '/usr/bin/python3' and '/usr/bin/python3.11' are the same file

Root Cause

The Dockerfile.release was trying to create symlinks:

  • python3.11 → python3
  • python3.12 → python3
  • python3.13 → python3

But in debian:bookworm-slim, python3 is already python3.11, so the first ln command failed.

Solution

Removed the unnecessary symlink commands. The base image already provides python3 which works perfectly for Lambda execution — we don't actually need multiple Python version aliases.

Testing

  • Docker build should now complete successfully
  • Python Lambda functions should work as before (they just use python3 directly)

Fixes the failed release workflow for v0.1.0.

Edd Almond added 2 commits February 19, 2026 16:43
The ln commands were trying to create symlinks to python3.11/3.12/3.13
but python3 is already python3.11 in bookworm-slim, causing the build
to fail with 'are the same file' error.

Removed unnecessary symlinks - python3 is already available and works
for Lambda execution.
- Implement FromStr trait for ExecutorMode instead of custom from_str
- Add #[allow(dead_code)] to WarmContainer.runtime (used for tracking)
- Apply rustfmt to align with style guidelines
Edd Almond added 3 commits February 19, 2026 16:57
Also fix rustfmt formatting in test
Function kept for API consistency but currently unused
Function kept for API consistency but currently unused
@eddalmond eddalmond merged commit 7f8e067 into main Feb 19, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant