Sha256: 338ddbe1e688020994aab84e419c9dc5689466ccad7de199ca3f4305189a18b1
Contents?: true
Size: 856 Bytes
Versions: 33
Compression:
Stored size: 856 Bytes
Contents
# Install node modules COPY<% if options.link? %> --link<% end %> <%= sources.join(' ') %> ./ <% if sources.join.include?('.yarnrc') && !Dir['.yarn/releases/*'].empty? -%> COPY<% if options.link? %> --link<% end %> .yarn/releases/* .yarn/releases/ <% end -%> <% if using_bun? -%> RUN <% if options.cache? %>--mount=type=cache,id=bld-bun-cache,target=/root/.bun \ <% end %>bun install<% if options.lock? %> --frozen-lockfile<% end %> <% elsif sources.join.include? 'yarn' -%> RUN <% if options.cache? %>--mount=type=cache,id=bld-yarn-cache,target=/root/.yarn \ YARN_CACHE_FOLDER=/root/.yarn <% end %>yarn install<% if options.lock? %> --<% if yarn_version < '2' -%>frozen-lockfile<% else %>immutable<% end %><% end %> <% else -%> RUN <% if options.cache? %>--mount=type=cache,id=bld-npm-cache,target=/root/.npm \ <% end %>npm install <% end -%>
Version data entries
33 entries across 33 versions & 1 rubygems