Merge pull request #1 from BetterCorp/mrinc-patch-1

Removing sudo commands from DockerFile
This commit is contained in:
Mitchell R 2023-12-14 21:32:15 +02:00 committed by GitHub
commit d5766a8295
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -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:

View file

@ -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