Sha256: a71baf4c8154cb0e86c65c70f756695bb60be0c66ae75e554c779c15518da533

Contents?: true

Size: 429 Bytes

Versions: 12

Compression:

Stored size: 429 Bytes

Contents

# Install node modules
COPY <%=sources.join(' ') %> .
<% if sources.join.include? 'yarn' -%>
<% if options.cache? -%>
RUN --mount=type=cache,id=bld-yarn-cache,target=/root/.yarn \
    YARN_CACHE_FOLDER=/root/.yarn yarn install
<% else -%>
RUN yarn install
<% 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

12 entries across 12 versions & 1 rubygems

Version Path
dockerfile-rails-1.0.0 lib/generators/templates/_npm_install.erb
dockerfile-rails-0.5.2 lib/generators/templates/_npm_install.erb
dockerfile-rails-0.5.1 lib/generators/templates/_npm_install.erb
dockerfile-rails-0.5.0 lib/generators/templates/_npm_install.erb
dockerfile-rails-0.4.9 lib/generators/templates/_npm_install.erb
dockerfile-rails-0.4.8 lib/generators/templates/_npm_install.erb
dockerfile-rails-0.4.7 lib/generators/templates/_npm_install.erb
dockerfile-rails-0.4.6 lib/generators/templates/_npm_install.erb
dockerfile-rails-0.4.5 lib/generators/templates/_npm_install.erb
dockerfile-rails-0.4.4 lib/generators/templates/_npm_install.erb
dockerfile-rails-0.4.3 lib/generators/templates/_npm_install.erb
dockerfile-rails-0.4.2 lib/generators/templates/_npm_install.erb