Created
June 17, 2020 18:34
-
-
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
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 | |
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