Removing sudo commands from DockerFile

This commit is contained in:
Mitchell R 2023-12-14 21:30:27 +02:00 committed by GitHub
parent b5c4bc9497
commit b3c42ba459
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,8 +7,8 @@ ARG NODE_VERSION="18"
RUN apt update -y RUN apt update -y
RUN apt install tar gzip build-essential ca-certificates curl gnupg -y RUN apt install tar gzip build-essential ca-certificates curl gnupg -y
RUN mkdir -p /etc/apt/keyrings RUN mkdir -p /etc/apt/keyrings
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_VERSION.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_VERSION.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
RUN apt update -y && apt-get install -y nodejs RUN apt update -y && apt-get install -y nodejs
RUN npm i -g yarn pnpm RUN npm i -g yarn pnpm
RUN mkdir /tmp/temph RUN mkdir /tmp/temph