Sha256: a516e254119a02b64f7e47c4cb9034e2e54a0996e4c17181d9f0cd410edff4ad

Contents?: true

Size: 488 Bytes

Versions: 10

Compression:

Stored size: 488 Bytes

Contents

# Install node modules
COPY<% if options.link? %> --link<% end %> <%= sources.join(' ') %> ./
<% 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

10 entries across 10 versions & 1 rubygems

Version Path
dockerfile-rails-1.5.3 lib/generators/templates/_npm_install.erb
dockerfile-rails-1.5.2 lib/generators/templates/_npm_install.erb
dockerfile-rails-1.5.1 lib/generators/templates/_npm_install.erb
dockerfile-rails-1.5.0 lib/generators/templates/_npm_install.erb
dockerfile-rails-1.4.2 lib/generators/templates/_npm_install.erb
dockerfile-rails-1.4.1 lib/generators/templates/_npm_install.erb
dockerfile-rails-1.4.0 lib/generators/templates/_npm_install.erb
dockerfile-rails-1.3.0 lib/generators/templates/_npm_install.erb
dockerfile-rails-1.2.5 lib/generators/templates/_npm_install.erb
dockerfile-rails-1.2.4 lib/generators/templates/_npm_install.erb