Skip to content
This repository has been archived by the owner on May 21, 2021. It is now read-only.

Optional gem vendoring #4

Open
abstrctn opened this issue Dec 9, 2015 · 1 comment
Open

Optional gem vendoring #4

abstrctn opened this issue Dec 9, 2015 · 1 comment

Comments

@abstrctn
Copy link
Contributor

abstrctn commented Dec 9, 2015

At the moment, the section of the Dockerfile that runs bundle install will fail if gems are not vendored locally in the repository:

# Install gems
ONBUILD COPY Gemfile Gemfile.lock /usr/src/app/
ONBUILD COPY vendor /usr/src/app/vendor
ONBUILD RUN bundle install --local --jobs `nproc`

Is there any way to make this step somehow optional? While vendoring works for us as a general rule, there are cases where it makes less sense, such as in open source projects.

@buth
Copy link
Contributor

buth commented Dec 14, 2015

Why does it make less sense for an open source project to vendor its dependencies?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants