File tree Expand file tree Collapse file tree 3 files changed +21
-1
lines changed Expand file tree Collapse file tree 3 files changed +21
-1
lines changed Original file line number Diff line number Diff line change 11ARG RUBY_VERSION=3.4.1
22FROM 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+
312ARG RAILS_VERSION
413# Install Rails based on the version specified but if not specified, install the latest version.
514RUN 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 11ARG RUBY_VERSION=3.4.1
22FROM ruby:${RUBY_VERSION}
3+
34ARG USER_ID=1000
45ARG GROUP_ID=1000
56RUN (getent group $GROUP_ID > /dev/null || groupadd -g $GROUP_ID app) && \
67 (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+
717USER $USER_ID:$GROUP_ID
18+
819ARG RAILS_VERSION
920# Install Rails based on the version specified but if not specified, install the latest version.
1021RUN 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 {
1717
1818#[ derive( Subcommand ) ]
1919pub enum Commands {
20- /// Prints `rails new --help`
20+ /// Print `rails new --help`
2121 RailsHelp { } ,
2222}
2323
You can’t perform that action at this time.
0 commit comments