Skip to content

Commit 8bd6d28

Browse files
committed
pymupdf deps added
1 parent 0be7d92 commit 8bd6d28

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Dockerfile.optimized

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ FROM ghcr.io/astral-sh/uv:0.9.6 AS uv
1010
# Builder stage - bundle dependencies into Lambda task root
1111
FROM public.ecr.aws/lambda/python:3.12-arm64 AS builder
1212

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+
1318
# Enable bytecode compilation to improve cold-start performance
1419
ENV UV_COMPILE_BYTECODE=1
1520

0 commit comments

Comments
 (0)