File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # Use for the container image that uv-python-lambda will use to bundle one or more Lambda functions
2+ # from a uv project (including those with one or more workspaces).
3+
14ARG IMAGE_ARCH=arm64 # or x86_64 (not amd64 as per Docker platform)
25ARG UV_VERSION=0.5.27
36ARG PYTHON_VERSION=3.12
47ARG BUNDLING_IMAGE=public.ecr.aws/sam/build-python${PYTHON_VERSION}:latest-${IMAGE_ARCH}
8+
59FROM ghcr.io/astral-sh/uv:${UV_VERSION} AS uv
610FROM ${BUNDLING_IMAGE}
7- # FROM public.ecr.aws/lambda/python:3.12-$IMAGE_ARCH
11+
812COPY --from=uv /uv /uvx /bin/
913COPY *.sh /root
1014RUN chmod +x /root/*.sh
Original file line number Diff line number Diff line change 11#! /bin/bash
22
3+ # This is the entrypoint script for the builder container used to bundle Python Lambda functions with UV.
4+ # It sets up the environment and waits for commands to execute.
5+
36# /uvbuild is the working directory for caches and staged outputs.
47# /src is the project root mounted from the host.
58
You can’t perform that action at this time.
0 commit comments