Skip to content

Commit ce6cd2d

Browse files
committed
chore: update inline docs in builder Dockerfile and entrypoint
1 parent db52048 commit ce6cd2d

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

resources/Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
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+
14
ARG IMAGE_ARCH=arm64 # or x86_64 (not amd64 as per Docker platform)
25
ARG UV_VERSION=0.5.27
36
ARG PYTHON_VERSION=3.12
47
ARG BUNDLING_IMAGE=public.ecr.aws/sam/build-python${PYTHON_VERSION}:latest-${IMAGE_ARCH}
8+
59
FROM ghcr.io/astral-sh/uv:${UV_VERSION} AS uv
610
FROM ${BUNDLING_IMAGE}
7-
# FROM public.ecr.aws/lambda/python:3.12-$IMAGE_ARCH
11+
812
COPY --from=uv /uv /uvx /bin/
913
COPY *.sh /root
1014
RUN chmod +x /root/*.sh

resources/entrypoint.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
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

0 commit comments

Comments
 (0)