Removing sudo commands from DockerFile
This commit is contained in:
parent
b5c4bc9497
commit
b3c42ba459
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue