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
3
8
4
9
WORKDIR /build
5
10
@@ -9,9 +14,9 @@ ARG TARGET_PLATFORM=linux
9
14
10
15
# Install build dependencies for sharp and libvips
11
16
RUN 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 && \
13
18
# Install libvips and its dependencies
14
- yum install -y libvips42 libvips-devel && \
19
+ yum install -y libvips libvips-devel && \
15
20
# Clean up to reduce layer size
16
21
yum clean all && rm -rf /var/cache/yum
17
22
You can’t perform that action at this time.
0 commit comments