Sha256: 36d3e468426b2b42967d9e307b34dcdfe4dd2f33b5e4d674103d9b978cc63209

Contents?: true

Size: 653 Bytes

Versions: 4

Compression:

Stored size: 653 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 -%>yarn 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

4 entries across 4 versions & 1 rubygems

Version Path
dockerfile-rails-1.5.7 lib/generators/templates/_npm_install.erb
dockerfile-rails-1.5.6 lib/generators/templates/_npm_install.erb
dockerfile-rails-1.5.5 lib/generators/templates/_npm_install.erb
dockerfile-rails-1.5.4 lib/generators/templates/_npm_install.erb