Skip to content

Commit 7883113

Browse files
committed
updates to the readme, inclusion of both x64 and arm64 - debug
1 parent b687fe7 commit 7883113

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

Dockerfile

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
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

49
WORKDIR /build
510

@@ -9,9 +14,9 @@ ARG TARGET_PLATFORM=linux
914

1015
# Install build dependencies for sharp and libvips
1116
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 && \
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

0 commit comments

Comments
 (0)