Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't install development and test gems in production #8

Merged
merged 1 commit into from Aug 19, 2020

Conversation

emileswarts
Copy link
Contributor

Bundler has deprecated the "--without flag":
rubygems/bundler#7531

By setting BUNDLE_WITHOUT env variable you can achieve the same thing.

Docker images should be smaller with less dependencies.

@emileswarts emileswarts merged commit fd41914 into main Aug 19, 2020
@emileswarts emileswarts deleted the bundle-envs branch August 19, 2020 09:33
RUN bundle config set no-cache 'true' && \
bundle install ${BUNDLE_INSTALL_FLAGS}
bundle install
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How come we're removing this here? We set it in docker-compose to speed up the installation by running it in parallel using the jobs flag (BUNDLE_INSTALL_FLAGS: "${BUNDLE_INSTALL_FLAGS:- --jobs 20 --retry 5}")

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

Successfully merging this pull request may close these issues.

None yet

3 participants