File tree 3 files changed +21
-1
lines changed
3 files changed +21
-1
lines changed Original file line number Diff line number Diff line change 1
1
ARG RUBY_VERSION=3.4.1
2
2
FROM ruby:${RUBY_VERSION}
3
+
4
+ ARG NODE_VERSION=22
5
+ ARG YARN_VERSION=1.22.22
6
+
7
+ RUN curl -sL https://deb.nodesource.com/setup_$NODE_VERSION.x | bash - \
8
+ && apt-get update \
9
+ && apt-get install --yes --no-install-recommends nodejs \
10
+ && npm install -g yarn@$YARN_VERSION
11
+
3
12
ARG RAILS_VERSION
4
13
# Install Rails based on the version specified but if not specified, install the latest version.
5
14
RUN if [ -z "$RAILS_VERSION" ] ; then gem install rails ; else gem install rails -v $RAILS_VERSION ; fi
Original file line number Diff line number Diff line change 1
1
ARG RUBY_VERSION=3.4.1
2
2
FROM ruby:${RUBY_VERSION}
3
+
3
4
ARG USER_ID=1000
4
5
ARG GROUP_ID=1000
5
6
RUN (getent group $GROUP_ID > /dev/null || groupadd -g $GROUP_ID app) && \
6
7
(getent passwd $USER_ID > /dev/null || useradd -u $USER_ID -g $GROUP_ID -m app)
8
+
9
+ ARG NODE_VERSION=22
10
+ ARG YARN_VERSION=1.22.22
11
+
12
+ RUN curl -sL https://deb.nodesource.com/setup_$NODE_VERSION.x | bash - \
13
+ && apt-get update \
14
+ && apt-get install --yes --no-install-recommends nodejs \
15
+ && npm install -g yarn@$YARN_VERSION
16
+
7
17
USER $USER_ID:$GROUP_ID
18
+
8
19
ARG RAILS_VERSION
9
20
# Install Rails based on the version specified but if not specified, install the latest version.
10
21
RUN if [ -z "$RAILS_VERSION" ] ; then gem install rails ; else gem install rails -v $RAILS_VERSION ; fi
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ pub struct Cli {
17
17
18
18
#[ derive( Subcommand ) ]
19
19
pub enum Commands {
20
- /// Prints `rails new --help`
20
+ /// Print `rails new --help`
21
21
RailsHelp { } ,
22
22
}
23
23
You can’t perform that action at this time.
0 commit comments