We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0be7d92 commit 8bd6d28Copy full SHA for 8bd6d28
Dockerfile.optimized
@@ -10,6 +10,11 @@ FROM ghcr.io/astral-sh/uv:0.9.6 AS uv
10
# Builder stage - bundle dependencies into Lambda task root
11
FROM public.ecr.aws/lambda/python:3.12-arm64 AS builder
12
13
+# Install build dependencies for packages that need compilation (pymupdf, etc.)
14
+# These are only needed during the build stage and won't be in the final image
15
+# Amazon Linux 2023 uses microdnf (symlinked as dnf) instead of yum
16
+RUN dnf install -y gcc gcc-c++ make && dnf clean all && rm -rf /var/cache/dnf
17
+
18
# Enable bytecode compilation to improve cold-start performance
19
ENV UV_COMPILE_BYTECODE=1
20
0 commit comments