File tree Expand file tree Collapse file tree 4 files changed +36
-40
lines changed Expand file tree Collapse file tree 4 files changed +36
-40
lines changed Original file line number Diff line number Diff line change @@ -19,18 +19,17 @@ RUN mkdir -p /opt/jruby/etc \
19
19
echo 'update: --no-document' ; \
20
20
} >> /opt/jruby/etc/gemrc
21
21
22
- RUN gem install bundler \
23
- && bundle config --global path "$GEM_HOME" \
24
- && bundle config --global bin "$GEM_HOME/bin" \
25
- && bundle config --global silence_root_warning true
22
+ RUN gem install bundler
26
23
27
24
# install things globally, for great justice
25
+ # and don't create ".bundle" in all our apps
28
26
ENV GEM_HOME /usr/local/bundle
29
- ENV PATH $GEM_HOME/bin:$PATH
30
- RUN mkdir -p "$GEM_HOME" \
31
- && chmod 777 "$GEM_HOME"
32
-
33
- # don't create ".bundle" in all our apps
34
- ENV BUNDLE_APP_CONFIG $GEM_HOME
27
+ ENV BUNDLE_PATH="$GEM_HOME" \
28
+ BUNDLE_BIN="$GEM_HOME/bin" \
29
+ BUNDLE_SILENCE_ROOT_WARNING=1 \
30
+ BUNDLE_APP_CONFIG="$GEM_HOME"
31
+ ENV PATH $BUNDLE_BIN:$PATH
32
+ RUN mkdir -p "$GEM_HOME" "$BUNDLE_BIN" \
33
+ && chmod 777 "$GEM_HOME" "$BUNDLE_BIN"
35
34
36
35
CMD [ "irb" ]
Original file line number Diff line number Diff line change @@ -19,18 +19,17 @@ RUN mkdir -p /opt/jruby/etc \
19
19
echo 'update: --no-document' ; \
20
20
} >> /opt/jruby/etc/gemrc
21
21
22
- RUN gem install bundler \
23
- && bundle config --global path "$GEM_HOME" \
24
- && bundle config --global bin "$GEM_HOME/bin" \
25
- && bundle config --global silence_root_warning true
22
+ RUN gem install bundler
26
23
27
24
# install things globally, for great justice
25
+ # and don't create ".bundle" in all our apps
28
26
ENV GEM_HOME /usr/local/bundle
29
- ENV PATH $GEM_HOME/bin:$PATH
30
- RUN mkdir -p "$GEM_HOME" \
31
- && chmod 777 "$GEM_HOME"
32
-
33
- # don't create ".bundle" in all our apps
34
- ENV BUNDLE_APP_CONFIG $GEM_HOME
27
+ ENV BUNDLE_PATH="$GEM_HOME" \
28
+ BUNDLE_BIN="$GEM_HOME/bin" \
29
+ BUNDLE_SILENCE_ROOT_WARNING=1 \
30
+ BUNDLE_APP_CONFIG="$GEM_HOME"
31
+ ENV PATH $BUNDLE_BIN:$PATH
32
+ RUN mkdir -p "$GEM_HOME" "$BUNDLE_BIN" \
33
+ && chmod 777 "$GEM_HOME" "$BUNDLE_BIN"
35
34
36
35
CMD [ "irb" ]
Original file line number Diff line number Diff line change @@ -19,18 +19,17 @@ RUN mkdir -p /opt/jruby/etc \
19
19
echo 'update: --no-document' ; \
20
20
} >> /opt/jruby/etc/gemrc
21
21
22
- RUN gem install bundler \
23
- && bundle config --global path "$GEM_HOME" \
24
- && bundle config --global bin "$GEM_HOME/bin" \
25
- && bundle config --global silence_root_warning true
22
+ RUN gem install bundler
26
23
27
24
# install things globally, for great justice
25
+ # and don't create ".bundle" in all our apps
28
26
ENV GEM_HOME /usr/local/bundle
29
- ENV PATH $GEM_HOME/bin:$PATH
30
- RUN mkdir -p "$GEM_HOME" \
31
- && chmod 777 "$GEM_HOME"
32
-
33
- # don't create ".bundle" in all our apps
34
- ENV BUNDLE_APP_CONFIG $GEM_HOME
27
+ ENV BUNDLE_PATH="$GEM_HOME" \
28
+ BUNDLE_BIN="$GEM_HOME/bin" \
29
+ BUNDLE_SILENCE_ROOT_WARNING=1 \
30
+ BUNDLE_APP_CONFIG="$GEM_HOME"
31
+ ENV PATH $BUNDLE_BIN:$PATH
32
+ RUN mkdir -p "$GEM_HOME" "$BUNDLE_BIN" \
33
+ && chmod 777 "$GEM_HOME" "$BUNDLE_BIN"
35
34
36
35
CMD [ "irb" ]
Original file line number Diff line number Diff line change @@ -19,18 +19,17 @@ RUN mkdir -p /opt/jruby/etc \
19
19
echo 'update: --no-document' ; \
20
20
} >> /opt/jruby/etc/gemrc
21
21
22
- RUN gem install bundler \
23
- && bundle config --global path "$GEM_HOME" \
24
- && bundle config --global bin "$GEM_HOME/bin" \
25
- && bundle config --global silence_root_warning true
22
+ RUN gem install bundler
26
23
27
24
# install things globally, for great justice
25
+ # and don't create ".bundle" in all our apps
28
26
ENV GEM_HOME /usr/local/bundle
29
- ENV PATH $GEM_HOME/bin:$PATH
30
- RUN mkdir -p "$GEM_HOME" \
31
- && chmod 777 "$GEM_HOME"
32
-
33
- # don't create ".bundle" in all our apps
34
- ENV BUNDLE_APP_CONFIG $GEM_HOME
27
+ ENV BUNDLE_PATH="$GEM_HOME" \
28
+ BUNDLE_BIN="$GEM_HOME/bin" \
29
+ BUNDLE_SILENCE_ROOT_WARNING=1 \
30
+ BUNDLE_APP_CONFIG="$GEM_HOME"
31
+ ENV PATH $BUNDLE_BIN:$PATH
32
+ RUN mkdir -p "$GEM_HOME" "$BUNDLE_BIN" \
33
+ && chmod 777 "$GEM_HOME" "$BUNDLE_BIN"
35
34
36
35
CMD [ "irb" ]
You can’t perform that action at this time.
0 commit comments