Sha256: b019f344f3ed24477ba6dfd2db7f79fd5cb6d89cf8b2a9d3364efb49abae29b0

Contents?: true

Size: 430 Bytes

Versions: 3

Compression:

Stored size: 430 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

3 entries across 3 versions & 1 rubygems

Version Path
dockerfile-rails-1.2.1 lib/generators/templates/_npm_install.erb
dockerfile-rails-1.2.0 lib/generators/templates/_npm_install.erb
dockerfile-rails-1.1.2 lib/generators/templates/_npm_install.erb