File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change 1- # Use Amazon Linux 2 base image to match AWS Lambda runtime
2- FROM public.ecr.aws/lambda/nodejs:20
1+ # Use Amazon Linux 2 base image explicitly
2+ FROM amazonlinux:2
3+
4+ # Install Node.js 20 (to match AWS Lambda runtime)
5+ RUN curl -fsSL https://rpm.nodesource.com/setup_20.x | bash - && \
6+ yum install -y nodejs && \
7+ npm install -g npm@latest
38
49WORKDIR /build
510
@@ -9,9 +14,9 @@ ARG TARGET_PLATFORM=linux
914
1015# Install build dependencies for sharp and libvips
1116RUN yum update -y && \
12- yum install -y gcc-c++ make python3 pkgconfig tar gzip && \
17+ yum install -y gcc-c++ make python3 pkgconf tar gzip && \
1318 # Install libvips and its dependencies
14- yum install -y libvips42 libvips-devel && \
19+ yum install -y libvips libvips-devel && \
1520 # Clean up to reduce layer size
1621 yum clean all && rm -rf /var/cache/yum
1722
You can’t perform that action at this time.
0 commit comments