Skip to content

Commit f9ed66f

Browse files
committed
pymupdf deps added
1 parent 0be7d92 commit f9ed66f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Dockerfile.optimized

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ 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+
RUN yum install -y gcc gcc-c++ make && yum clean all && rm -rf /var/cache/yum
16+
1317
# Enable bytecode compilation to improve cold-start performance
1418
ENV UV_COMPILE_BYTECODE=1
1519

0 commit comments

Comments
 (0)