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