lib/generators/templates/_install_node.erb in dockerfile-rails-1.1.1 vs lib/generators/templates/_install_node.erb in dockerfile-rails-1.1.2

- old
+ new

@@ -11,11 +11,14 @@ <% if yarn_version -%> ARG YARN_VERSION=<%= yarn_version %> <% end -%> <% if node_version -%> RUN curl -fsSL https://fnm.vercel.app/install | bash && \ - /root/.local/share/fnm/fnm install $NODE_VERSION + /root/.local/share/fnm/fnm install $NODE_VERSION<% if !run_as_root? && using_execjs? %> && \ + mv /root/.local/share/fnm/aliases/default/bin/node /usr/local/bin<% end %> +<% if !using_execjs? || yarn_version -%> ENV PATH=/root/.local/share/fnm/aliases/default/bin/:$PATH +<% end -%> <% end -%> <% if yarn_version -%> <% if yarn_version < '2' -%> RUN npm install -g yarn@$YARN_VERSION <% else -%> \ No newline at end of file