Skip to content

Instantly share code, notes, and snippets.

@vlad-bezden
Created June 17, 2020 18:34
Show Gist options
  • Save vlad-bezden/bf733f94229ae019a46b846f0bdf8d39 to your computer and use it in GitHub Desktop.
Save vlad-bezden/bf733f94229ae019a46b846f0bdf8d39 to your computer and use it in GitHub Desktop.
An example on how to install amazon aws-cli 2.x and nodejs from amazonlinux Linux image to the docker image
FROM amazonlinux
RUN yum -y update
RUN yum -y upgrade
RUN yum -y install curl
RUN yum -y install unzip
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
RUN unzip awscliv2.zip
RUN ./aws/install -i /usr/local/aws-cli -b /usr/local/bin
# check awscli version
RUN aws --version
RUN curl -sL "https://rpm.nodesource.com/setup_12.x" | bash -
RUN yum -y install nodejs npm
# check nodejs version
RUN node --version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment