공부
[sh] docker image `RUN yum install -y awscli`
승가비
2023. 1. 5. 02:14
728x90
FROM amazonlinux:latest as app
WORKDIR /app
COPY . /app/
ARG SH
ENV SH=${SH}
RUN yum install -y awscli
RUN curl -L https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64 -o ./jq
RUN chmod a+x ./jq
CMD ./static/sh/${SH}.sh
RUN yum install -y awscli
https://stackoverflow.com/questions/64164308/why-is-the-aws-cli-not-found-on-amazonlinux2-ami
Why is the aws cli not found on amazonlinux2 ami?
The AmazonLinux2 AMI I am using for my Docker hosts does not appear to have the AWS CLI installed. The log has an error from the user data script that tries to run an aws command: /var/lib/cloud/in...
stackoverflow.com
728x90