Sha256: 9981efb1a97136cddfaef72f5a62ec12599ad37c5838d05a34ea7b9654139f77

Contents?: true

Size: 831 Bytes

Versions: 27

Compression:

Stored size: 831 Bytes

Contents

<% if node_version and yarn_version -%>
# Install JavaScript dependencies
<% elsif node_version -%>
# Install Node.js
<% elsif yarn_version -%>
# Install yarn
<% end -%>
<% if node_version -%>
ARG NODE_VERSION=<%= node_version %>
<% end -%>
<% 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
ENV PATH=/root/.local/share/fnm/aliases/default/bin/:$PATH
<% end -%>
<% if yarn_version -%>
<% if yarn_version < '2' -%>
RUN npm install -g yarn@$YARN_VERSION
<% else -%>
<% if (node_version.split('.').map(&:to_i) <=> [16,10,0]) < 0 -%>
RUN npm i -g corepack && \
<% else -%>
RUN corepack enable && \
<% end -%>
    corepack prepare yarn@$YARN_VERSION --activate
<% end -%>
<% end -%>

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
dockerfile-rails-1.1.1 lib/generators/templates/_install_node.erb
dockerfile-rails-1.1.0 lib/generators/templates/_install_node.erb
dockerfile-rails-1.0.18 lib/generators/templates/_install_node.erb
dockerfile-rails-1.0.17 lib/generators/templates/_install_node.erb
dockerfile-rails-1.0.16 lib/generators/templates/_install_node.erb
dockerfile-rails-1.0.15 lib/generators/templates/_install_node.erb
dockerfile-rails-1.0.14 lib/generators/templates/_install_node.erb
dockerfile-rails-1.0.13 lib/generators/templates/_install_node.erb
dockerfile-rails-1.0.12 lib/generators/templates/_install_node.erb
dockerfile-rails-1.0.11 lib/generators/templates/_install_node.erb
dockerfile-rails-1.0.10 lib/generators/templates/_install_node.erb
dockerfile-rails-1.0.9 lib/generators/templates/_install_node.erb
dockerfile-rails-1.0.8 lib/generators/templates/_install_node.erb
dockerfile-rails-1.0.7 lib/generators/templates/_install_node.erb
dockerfile-rails-1.0.6 lib/generators/templates/_install_node.erb
dockerfile-rails-1.0.5 lib/generators/templates/_install_node.erb
dockerfile-rails-1.0.4 lib/generators/templates/_install_node.erb
dockerfile-rails-1.0.3 lib/generators/templates/_install_node.erb
dockerfile-rails-1.0.2 lib/generators/templates/_install_node.erb
dockerfile-rails-1.0.1 lib/generators/templates/_install_node.erb