Sha256: 694f7da38faebc5e53054b79683b2bd378c0faa8d35c0756d97022e40605b796

Contents?: true

Size: 694 Bytes

Versions: 1

Compression:

Stored size: 694 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 sources.join.include? 'yarn' -%>
RUN <% if options.cache? -%>--mount=type=cache,id=bld-yarn-cache,target=/root/.yarn \
    YARN_CACHE_FOLDER=/root/.yarn <% end -%><% if using_bun? %>bun<% else %>yarn<% end %> install<% if options.lock? %> --frozen-lockfile<% end %>
<% else -%>
<% if options.cache? -%>
RUN --mount=type=cache,id=bld-npm-cache,target=/root/.npm \
    npm install
<% else -%>
RUN npm install
<% end -%>
<% end -%>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dockerfile-rails-1.5.8 lib/generators/templates/_npm_install.erb