diff --git a/Dockerfile b/Dockerfile index f4498e4..303339a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,17 +1,10 @@ -# Node 18 is not supported on https://serverfault.com/a/1141673 -FROM public.ecr.aws/lambda/nodejs:18 as nodesource - -FROM amazonlinux:2-with-sources - -ENV PATH="$PATH:/var/lang/bin" -ENV NODE_OPTIONS=--openssl-legacy-provider -COPY --from=nodesource /var/lang /var/lang +FROM public.ecr.aws/amazonlinux/amazonlinux:2023 WORKDIR /build -# RUN curl --silent --location https://rpm.nodesource.com/setup_18.x | bash - +RUN curl --silent --location https://rpm.nodesource.com/setup_18.x | bash - -# RUN yum -y install nodejs +RUN yum -y install nodejs COPY * ./