File tree Expand file tree Collapse file tree 4 files changed +56
-16
lines changed Expand file tree Collapse file tree 4 files changed +56
-16
lines changed Original file line number Diff line number Diff line change @@ -12,13 +12,23 @@ RUN mkdir /opt/jruby \
12
12
&& update-alternatives --install /usr/local/bin/ruby ruby /opt/jruby/bin/jruby 1
13
13
ENV PATH /opt/jruby/bin:$PATH
14
14
15
- RUN echo 'gem: --no-rdoc --no-ri' >> ~/.gemrc
15
+ # skip installing gem documentation
16
+ RUN mkdir -p /opt/jruby/etc \
17
+ && { \
18
+ echo 'install: --no-document' ; \
19
+ echo 'update: --no-document' ; \
20
+ } >> /opt/jruby/etc/gemrc
16
21
17
- ENV GEM_HOME /usr/local/bundle
18
- ENV PATH $GEM_HOME/bin:$PATH
19
22
RUN gem install bundler \
20
23
&& bundle config --global path "$GEM_HOME" \
21
- && bundle config --global bin "$GEM_HOME/bin"
24
+ && bundle config --global bin "$GEM_HOME/bin" \
25
+ && bundle config --global silence_root_warning true
26
+
27
+ # install things globally, for great justice
28
+ ENV GEM_HOME /usr/local/bundle
29
+ ENV PATH $GEM_HOME/bin:$PATH
30
+ RUN mkdir -p "$GEM_HOME" \
31
+ && chmod 777 "$GEM_HOME"
22
32
23
33
# don't create ".bundle" in all our apps
24
34
ENV BUNDLE_APP_CONFIG $GEM_HOME
Original file line number Diff line number Diff line change @@ -12,13 +12,23 @@ RUN mkdir /opt/jruby \
12
12
&& update-alternatives --install /usr/local/bin/ruby ruby /opt/jruby/bin/jruby 1
13
13
ENV PATH /opt/jruby/bin:$PATH
14
14
15
- RUN echo 'gem: --no-rdoc --no-ri' >> ~/.gemrc
15
+ # skip installing gem documentation
16
+ RUN mkdir -p /opt/jruby/etc \
17
+ && { \
18
+ echo 'install: --no-document' ; \
19
+ echo 'update: --no-document' ; \
20
+ } >> /opt/jruby/etc/gemrc
16
21
17
- ENV GEM_HOME /usr/local/bundle
18
- ENV PATH $GEM_HOME/bin:$PATH
19
22
RUN gem install bundler \
20
23
&& bundle config --global path "$GEM_HOME" \
21
- && bundle config --global bin "$GEM_HOME/bin"
24
+ && bundle config --global bin "$GEM_HOME/bin" \
25
+ && bundle config --global silence_root_warning true
26
+
27
+ # install things globally, for great justice
28
+ ENV GEM_HOME /usr/local/bundle
29
+ ENV PATH $GEM_HOME/bin:$PATH
30
+ RUN mkdir -p "$GEM_HOME" \
31
+ && chmod 777 "$GEM_HOME"
22
32
23
33
# don't create ".bundle" in all our apps
24
34
ENV BUNDLE_APP_CONFIG $GEM_HOME
Original file line number Diff line number Diff line change @@ -12,13 +12,23 @@ RUN mkdir /opt/jruby \
12
12
&& update-alternatives --install /usr/local/bin/ruby ruby /opt/jruby/bin/jruby 1
13
13
ENV PATH /opt/jruby/bin:$PATH
14
14
15
- RUN echo 'gem: --no-rdoc --no-ri' >> ~/.gemrc
15
+ # skip installing gem documentation
16
+ RUN mkdir -p /opt/jruby/etc \
17
+ && { \
18
+ echo 'install: --no-document' ; \
19
+ echo 'update: --no-document' ; \
20
+ } >> /opt/jruby/etc/gemrc
16
21
17
- ENV GEM_HOME /usr/local/bundle
18
- ENV PATH $GEM_HOME/bin:$PATH
19
22
RUN gem install bundler \
20
23
&& bundle config --global path "$GEM_HOME" \
21
- && bundle config --global bin "$GEM_HOME/bin"
24
+ && bundle config --global bin "$GEM_HOME/bin" \
25
+ && bundle config --global silence_root_warning true
26
+
27
+ # install things globally, for great justice
28
+ ENV GEM_HOME /usr/local/bundle
29
+ ENV PATH $GEM_HOME/bin:$PATH
30
+ RUN mkdir -p "$GEM_HOME" \
31
+ && chmod 777 "$GEM_HOME"
22
32
23
33
# don't create ".bundle" in all our apps
24
34
ENV BUNDLE_APP_CONFIG $GEM_HOME
Original file line number Diff line number Diff line change @@ -12,13 +12,23 @@ RUN mkdir /opt/jruby \
12
12
&& update-alternatives --install /usr/local/bin/ruby ruby /opt/jruby/bin/jruby 1
13
13
ENV PATH /opt/jruby/bin:$PATH
14
14
15
- RUN echo 'gem: --no-rdoc --no-ri' >> ~/.gemrc
15
+ # skip installing gem documentation
16
+ RUN mkdir -p /opt/jruby/etc \
17
+ && { \
18
+ echo 'install: --no-document' ; \
19
+ echo 'update: --no-document' ; \
20
+ } >> /opt/jruby/etc/gemrc
16
21
17
- ENV GEM_HOME /usr/local/bundle
18
- ENV PATH $GEM_HOME/bin:$PATH
19
22
RUN gem install bundler \
20
23
&& bundle config --global path "$GEM_HOME" \
21
- && bundle config --global bin "$GEM_HOME/bin"
24
+ && bundle config --global bin "$GEM_HOME/bin" \
25
+ && bundle config --global silence_root_warning true
26
+
27
+ # install things globally, for great justice
28
+ ENV GEM_HOME /usr/local/bundle
29
+ ENV PATH $GEM_HOME/bin:$PATH
30
+ RUN mkdir -p "$GEM_HOME" \
31
+ && chmod 777 "$GEM_HOME"
22
32
23
33
# don't create ".bundle" in all our apps
24
34
ENV BUNDLE_APP_CONFIG $GEM_HOME
You can’t perform that action at this time.
0 commit comments