Skip to content

Commit e7af3d9

Browse files
committed
install gems globally
1 parent 2ddca4b commit e7af3d9

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

1.7/Dockerfile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@ ENV PATH /opt/jruby/bin:$PATH
88

99
RUN echo 'gem: --no-rdoc --no-ri' >> /.gemrc
1010

11-
RUN gem install bundler
11+
ENV GEM_HOME /usr/local/bundle
12+
ENV PATH $GEM_HOME/bin:$PATH
13+
RUN gem install bundler \
14+
&& bundle config --global path "$GEM_HOME" \
15+
&& bundle config --global bin "$GEM_HOME/bin"
16+
17+
# don't create ".bundle" in all our apps
18+
ENV BUNDLE_APP_CONFIG $GEM_HOME
1219

1320
CMD [ "irb" ]

0 commit comments

Comments
 (0)