RUN command not found

This is my Dockerfile content

FROM amazoncorretto:latest

WORKDIR /tmp

RUN yum update -y && RUN yum install -y python3-pip && pip3 install awscli –upgrade –user && RUN yum install -y awslogs

Error: RUN command not found

But it works if I run those commands separately without &&

I am trying to follow best practice i.e add multiple run commands using "&&" . What I am doing wrong ?

submitted by /u/anacondaonline
[link] [comments]
Source: Reddit