Created
February 16, 2022 16:36
-
-
Save dgoguerra/65dd092ed9386fe6a0bbd1323c743668 to your computer and use it in GitHub Desktop.
Install amazonlinux NodeJS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM amazonlinux:2 | |
# Install NodeJS v12 | |
RUN set -eux \ | |
&& curl -sL -o nodesource.rpm https://rpm.nodesource.com/pub_12.x/el/7/x86_64/nodesource-release-el7-1.noarch.rpm \ | |
&& rpm -i --nosignature --force nodesource.rpm \ | |
&& rm -f nodesource.rpm \ | |
&& yum install -y nodejs | |
ENTRYPOINT ["node"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment