Skip to content

Commit 4bbcf20

Browse files
author
Anton Nikiforov
committed
Add ruby 3.2.2 and node 20
1 parent 3ac8567 commit 4bbcf20

2 files changed

Lines changed: 14 additions & 2 deletions

File tree

ruby-3.2.0-node-16/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ FROM ruby:3.2.0
22

33
# Node
44
RUN curl -sL https://deb.nodesource.com/setup_16.x | bash -
5-
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
6-
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
5+
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
6+
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
77
RUN apt-get update
88
RUN apt-get install -y nodejs yarn
99

ruby-3.2.2-node-20/Dockerfile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
FROM ruby:3.2.2
2+
3+
# Node
4+
RUN apt-get update && apt-get install -y ca-certificates gnupg
5+
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
6+
ENV NODE_MAJOR=20
7+
RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
8+
RUN apt-get update
9+
RUN apt-get install nodejs yarn -y
10+
11+
# Install Chrome
12+
RUN apt-get install -y wget

0 commit comments

Comments
 (0)