Skip to content

Commit 43c73f9

Browse files
authored
Added GitHub CLI and simplified redundant lines
1 parent 1c1b294 commit 43c73f9

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

Dockerfile

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,19 @@
55
# docker push cs3org/cs3apis
66
FROM golang
77
RUN apt-get update
8-
RUN apt-get install build-essential curl unzip sudo -y
8+
RUN apt-get install build-essential curl unzip sudo ca-certificates gnupg -y
99
RUN apt-get install python3-pip python3-full -y
1010

1111
# deps for node.js
12-
RUN sudo apt-get update && sudo apt-get install -y ca-certificates curl gnupg
13-
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
14-
RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list
12+
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
13+
RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
14+
15+
# deps for GH CLI
16+
RUN curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | gpg --dearmor -o /usr/share/keyrings/githubcli-archive-keyring.gpg
17+
RUN echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | tee /etc/apt/sources.list.d/github-cli.list
18+
1519
RUN apt-get update
16-
RUN sudo apt-get install nodejs -y
20+
RUN sudo apt-get install gh nodejs -y
1721
RUN node -v
1822
RUN npm install -g @bufbuild/buf
1923

0 commit comments

Comments
 (0)