GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — drillapi/Dockerfile.lambda at main · SFOE/drillapi Expand file tree/ Copy pathDockerfile.lambdaMore file actions 46 lines (35 loc) · 1.79 KB / Copy pathDockerfile.lambdaFile metadata and controls46 lines (35 loc) · 1.79 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 # from https://docs.astral.sh/uv/guides/integration/aws-lambda/#deploying-a-docker-image FROM ghcr.io/astral-sh/uv:0.13.7 AS uv # First, bundle the dependencies into the task root. FROM public.ecr.aws/lambda/python:3.14 AS builder # Enable bytecode compilation, to improve cold-start performance. ENV UV_COMPILE_BYTECODE=1 # Disable installer metadata, to create a deterministic layer. ENV UV_NO_INSTALLER_METADATA=1 # Enable copy mode to support bind mount caching. ENV UV_LINK_MODE=copy # Bundle the dependencies into the Lambda task root via `uv pip install --target`. # # Omit any local packages (`--no-emit-workspace`) and development dependencies (`--no-dev`). # This ensures that the Docker layer cache is only invalidated when the `pyproject.toml` or `uv.lock` # files change, but remains robust to changes in the application code. RUN --mount=from=uv,source=/uv,target=/bin/uv \ --mount=type=cache,target=/root/.cache/uv \ --mount=type=bind,source=uv.lock,target=uv.lock \ --mount=type=bind,source=pyproject.toml,target=pyproject.toml \ uv export --frozen --no-emit-workspace --no-dev --no-editable -o requirements.txt && \ uv pip install -r requirements.txt --target "${LAMBDA_TASK_ROOT}" FROM public.ecr.aws/lambda/python:3.14 # Patch OS-level packages when updates are available. # Currently resolves "Nothing to do" but will auto-fix openssl/libsolv CVEs # once AWS publishes patched RPMs to the AL2023 repo. RUN dnf upgrade -y --refresh && \ pip install --upgrade pip && \ dnf clean all && \ rm -rf /var/cache/dnf # Copy the runtime dependencies from the builder stage. COPY --from=builder ${LAMBDA_TASK_ROOT} ${LAMBDA_TASK_ROOT} # Copy the application code. COPY src/drillapi ${LAMBDA_TASK_ROOT}/drillapi # Set the CMD to your handler CMD ["drillapi.lambda_handler.handler"] |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |