Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
hansottowirtz committed Feb 16, 2024
1 parent d608487 commit 3641b7b
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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 * ./

Expand Down

0 comments on commit 3641b7b

Please sign in to comment.