Merge pull request #1 from BetterCorp/mrinc-patch-1
Removing sudo commands from DockerFile
This commit is contained in:
commit
d5766a8295
2 changed files with 3 additions and 3 deletions
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
|
@ -37,7 +37,7 @@ jobs:
|
|||
"0.121.0",
|
||||
"0.121.1"
|
||||
]
|
||||
node-version: ["16", "18", "20"]
|
||||
node-version: ["18", "20", "21"]
|
||||
go-version: ["1", "1.19", "1.19.11", "1.20", "1.20.5", "1.20.6", "1.21.5"]
|
||||
|
||||
steps:
|
||||
|
|
|
@ -7,8 +7,8 @@ ARG NODE_VERSION="18"
|
|||
RUN apt update -y
|
||||
RUN apt install tar gzip build-essential ca-certificates curl gnupg -y
|
||||
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 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 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" | tee /etc/apt/sources.list.d/nodesource.list
|
||||
RUN apt update -y && apt-get install -y nodejs
|
||||
RUN npm i -g yarn pnpm
|
||||
RUN mkdir /tmp/temph
|
||||
|
|
Loading…
Add table
Reference in a new issue