# Prevent Ruby from installing

**URL:** <https://discuss.circleci.com/t/prevent-ruby-from-installing/3639>\
**Category:** Build Environment\
**Tags:** ruby, docker\
**Created:** [April 27, 2016, 1:42pm UTC](https://discuss.circleci.com/t/prevent-ruby-from-installing/3639 "2016-04-27T13:42:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anthonator](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/anthonator/32/1774_2.png) [@anthonator](https://discuss.circleci.com/u/anthonator)\
**Post date:** [April 27, 2016, 1:42pm UTC](https://discuss.circleci.com/t/prevent-ruby-from-installing/3639/1 "2016-04-27T13:42:21Z")

</div>

Is there a way to prevent Ruby from installing if a Gemfile is present? I’m using Docker so I don’t need it installed in the container.

---

<div class="post-metadata">

**Author:** ![anthonator](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/anthonator/32/1774_2.png) [@anthonator](https://discuss.circleci.com/u/anthonator)\
**Post date:** [April 27, 2016, 2:07pm UTC](https://discuss.circleci.com/t/prevent-ruby-from-installing/3639/2 "2016-04-27T14:07:44Z")

</div>

Here is the `test` section of my `circle.yml`.

```auto
test:
  override:
    - docker-compose run app bundle exec rspec
  post:
    - docker-compose run app rubycritic --mode-ci
    - docker stop $(docker ps -aq)

```

---

<div class="post-metadata">

**Author:** ![kevin-cantwell](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/kevin-cantwell/32/8927_2.png) [@kevin-cantwell](https://discuss.circleci.com/u/kevin-cantwell)\
**Post date:** [June 1, 2016, 12:44am UTC](https://discuss.circleci.com/t/prevent-ruby-from-installing/3639/3 "2016-06-01T00:44:07Z")

</div>

Bump. I would love to figure this out as well.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/circleci/original/3X/5/1/511608acda8e85906e15909b57bd0a46c1dbe291.png) [@system](https://discuss.circleci.com/u/system)\
**Post date:** [June 18, 2018, 11:38am UTC](https://discuss.circleci.com/t/prevent-ruby-from-installing/3639/4 "2018-06-18T11:38:17Z")

</div>


