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

Version Path
dockerfile-rails-1.7.9 lib/generators/templates/_npm_install.erb
dockerfile-rails-1.7.8 lib/generators/templates/_npm_install.erb
dockerfile-rails-1.7.7 lib/generators/templates/_npm_install.erb
dockerfile-rails-1.7.6 lib/generators/templates/_npm_install.erb
dockerfile-rails-1.7.5 lib/generators/templates/_npm_install.erb
dockerfile-rails-1.7.4 lib/generators/templates/_npm_install.erb
dockerfile-rails-1.7.3 lib/generators/templates/_npm_install.erb
dockerfile-rails-1.7.2 lib/generators/templates/_npm_install.erb
dockerfile-rails-1.7.1 lib/generators/templates/_npm_install.erb
dockerfile-rails-1.7.0 lib/generators/templates/_npm_install.erb
dockerfile-rails-1.6.25 lib/generators/templates/_npm_install.erb
dockerfile-rails-1.6.24 lib/generators/templates/_npm_install.erb
dockerfile-rails-1.6.23 lib/generators/templates/_npm_install.erb
dockerfile-rails-1.6.22 lib/generators/templates/_npm_install.erb
dockerfile-rails-1.6.21 lib/generators/templates/_npm_install.erb
dockerfile-rails-1.6.20 lib/generators/templates/_npm_install.erb
dockerfile-rails-1.6.19 lib/generators/templates/_npm_install.erb
dockerfile-rails-1.6.18 lib/generators/templates/_npm_install.erb
dockerfile-rails-1.6.17 lib/generators/templates/_npm_install.erb
dockerfile-rails-1.6.16 lib/generators/templates/_npm_install.erb