Sha256: 1c627662e827756fe283ac9211496c3c839d704d20155526c4c38efa04f02251

Contents?: true

Size: 448 Bytes

Versions: 1

Compression:

Stored size: 448 Bytes

Contents

# Install node modules
COPY <%=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

1 entries across 1 versions & 1 rubygems

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