mirror of
https://github.com/docker-library/ruby.git
synced 2022-11-09 11:41:34 -05:00
Remove BUNDLE_BIN and add GEM_HOME/bin back to PATH
See https://github.com/docker-library/ruby/pull/208#issuecomment-390755292
This commit is contained in:
parent
4981a43ffe
commit
699a043113
20 changed files with 80 additions and 80 deletions
|
@ -101,12 +101,12 @@ RUN set -ex \
|
||||||
# and don't create ".bundle" in all our apps
|
# and don't create ".bundle" in all our apps
|
||||||
ENV GEM_HOME /usr/local/bundle
|
ENV GEM_HOME /usr/local/bundle
|
||||||
ENV BUNDLE_PATH="$GEM_HOME" \
|
ENV BUNDLE_PATH="$GEM_HOME" \
|
||||||
BUNDLE_BIN="$GEM_HOME/bin" \
|
|
||||||
BUNDLE_SILENCE_ROOT_WARNING=1 \
|
BUNDLE_SILENCE_ROOT_WARNING=1 \
|
||||||
BUNDLE_APP_CONFIG="$GEM_HOME"
|
BUNDLE_APP_CONFIG="$GEM_HOME"
|
||||||
# path recommendation: https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
|
# path recommendation: https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
|
||||||
ENV PATH $BUNDLE_PATH/gems/bin:$PATH
|
ENV PATH $GEM_HOME/bin:$BUNDLE_PATH/gems/bin:$PATH
|
||||||
RUN mkdir -p "$GEM_HOME" "$BUNDLE_BIN" \
|
# adjust permissions of a few directories for running "gem install" as an arbitrary user
|
||||||
&& chmod 777 "$GEM_HOME" "$BUNDLE_BIN"
|
RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME"
|
||||||
|
# (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both)
|
||||||
|
|
||||||
CMD [ "irb" ]
|
CMD [ "irb" ]
|
||||||
|
|
|
@ -66,12 +66,12 @@ RUN set -ex \
|
||||||
# and don't create ".bundle" in all our apps
|
# and don't create ".bundle" in all our apps
|
||||||
ENV GEM_HOME /usr/local/bundle
|
ENV GEM_HOME /usr/local/bundle
|
||||||
ENV BUNDLE_PATH="$GEM_HOME" \
|
ENV BUNDLE_PATH="$GEM_HOME" \
|
||||||
BUNDLE_BIN="$GEM_HOME/bin" \
|
|
||||||
BUNDLE_SILENCE_ROOT_WARNING=1 \
|
BUNDLE_SILENCE_ROOT_WARNING=1 \
|
||||||
BUNDLE_APP_CONFIG="$GEM_HOME"
|
BUNDLE_APP_CONFIG="$GEM_HOME"
|
||||||
# path recommendation: https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
|
# path recommendation: https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
|
||||||
ENV PATH $BUNDLE_PATH/gems/bin:$PATH
|
ENV PATH $GEM_HOME/bin:$BUNDLE_PATH/gems/bin:$PATH
|
||||||
RUN mkdir -p "$GEM_HOME" "$BUNDLE_BIN" \
|
# adjust permissions of a few directories for running "gem install" as an arbitrary user
|
||||||
&& chmod 777 "$GEM_HOME" "$BUNDLE_BIN"
|
RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME"
|
||||||
|
# (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both)
|
||||||
|
|
||||||
CMD [ "irb" ]
|
CMD [ "irb" ]
|
||||||
|
|
|
@ -92,12 +92,12 @@ RUN set -ex \
|
||||||
# and don't create ".bundle" in all our apps
|
# and don't create ".bundle" in all our apps
|
||||||
ENV GEM_HOME /usr/local/bundle
|
ENV GEM_HOME /usr/local/bundle
|
||||||
ENV BUNDLE_PATH="$GEM_HOME" \
|
ENV BUNDLE_PATH="$GEM_HOME" \
|
||||||
BUNDLE_BIN="$GEM_HOME/bin" \
|
|
||||||
BUNDLE_SILENCE_ROOT_WARNING=1 \
|
BUNDLE_SILENCE_ROOT_WARNING=1 \
|
||||||
BUNDLE_APP_CONFIG="$GEM_HOME"
|
BUNDLE_APP_CONFIG="$GEM_HOME"
|
||||||
# path recommendation: https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
|
# path recommendation: https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
|
||||||
ENV PATH $BUNDLE_PATH/gems/bin:$PATH
|
ENV PATH $GEM_HOME/bin:$BUNDLE_PATH/gems/bin:$PATH
|
||||||
RUN mkdir -p "$GEM_HOME" "$BUNDLE_BIN" \
|
# adjust permissions of a few directories for running "gem install" as an arbitrary user
|
||||||
&& chmod 777 "$GEM_HOME" "$BUNDLE_BIN"
|
RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME"
|
||||||
|
# (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both)
|
||||||
|
|
||||||
CMD [ "irb" ]
|
CMD [ "irb" ]
|
||||||
|
|
|
@ -68,12 +68,12 @@ RUN set -ex \
|
||||||
# and don't create ".bundle" in all our apps
|
# and don't create ".bundle" in all our apps
|
||||||
ENV GEM_HOME /usr/local/bundle
|
ENV GEM_HOME /usr/local/bundle
|
||||||
ENV BUNDLE_PATH="$GEM_HOME" \
|
ENV BUNDLE_PATH="$GEM_HOME" \
|
||||||
BUNDLE_BIN="$GEM_HOME/bin" \
|
|
||||||
BUNDLE_SILENCE_ROOT_WARNING=1 \
|
BUNDLE_SILENCE_ROOT_WARNING=1 \
|
||||||
BUNDLE_APP_CONFIG="$GEM_HOME"
|
BUNDLE_APP_CONFIG="$GEM_HOME"
|
||||||
# path recommendation: https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
|
# path recommendation: https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
|
||||||
ENV PATH $BUNDLE_PATH/gems/bin:$PATH
|
ENV PATH $GEM_HOME/bin:$BUNDLE_PATH/gems/bin:$PATH
|
||||||
RUN mkdir -p "$GEM_HOME" "$BUNDLE_BIN" \
|
# adjust permissions of a few directories for running "gem install" as an arbitrary user
|
||||||
&& chmod 777 "$GEM_HOME" "$BUNDLE_BIN"
|
RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME"
|
||||||
|
# (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both)
|
||||||
|
|
||||||
CMD [ "irb" ]
|
CMD [ "irb" ]
|
||||||
|
|
|
@ -92,12 +92,12 @@ RUN set -ex \
|
||||||
# and don't create ".bundle" in all our apps
|
# and don't create ".bundle" in all our apps
|
||||||
ENV GEM_HOME /usr/local/bundle
|
ENV GEM_HOME /usr/local/bundle
|
||||||
ENV BUNDLE_PATH="$GEM_HOME" \
|
ENV BUNDLE_PATH="$GEM_HOME" \
|
||||||
BUNDLE_BIN="$GEM_HOME/bin" \
|
|
||||||
BUNDLE_SILENCE_ROOT_WARNING=1 \
|
BUNDLE_SILENCE_ROOT_WARNING=1 \
|
||||||
BUNDLE_APP_CONFIG="$GEM_HOME"
|
BUNDLE_APP_CONFIG="$GEM_HOME"
|
||||||
# path recommendation: https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
|
# path recommendation: https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
|
||||||
ENV PATH $BUNDLE_PATH/gems/bin:$PATH
|
ENV PATH $GEM_HOME/bin:$BUNDLE_PATH/gems/bin:$PATH
|
||||||
RUN mkdir -p "$GEM_HOME" "$BUNDLE_BIN" \
|
# adjust permissions of a few directories for running "gem install" as an arbitrary user
|
||||||
&& chmod 777 "$GEM_HOME" "$BUNDLE_BIN"
|
RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME"
|
||||||
|
# (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both)
|
||||||
|
|
||||||
CMD [ "irb" ]
|
CMD [ "irb" ]
|
||||||
|
|
|
@ -101,12 +101,12 @@ RUN set -ex \
|
||||||
# and don't create ".bundle" in all our apps
|
# and don't create ".bundle" in all our apps
|
||||||
ENV GEM_HOME /usr/local/bundle
|
ENV GEM_HOME /usr/local/bundle
|
||||||
ENV BUNDLE_PATH="$GEM_HOME" \
|
ENV BUNDLE_PATH="$GEM_HOME" \
|
||||||
BUNDLE_BIN="$GEM_HOME/bin" \
|
|
||||||
BUNDLE_SILENCE_ROOT_WARNING=1 \
|
BUNDLE_SILENCE_ROOT_WARNING=1 \
|
||||||
BUNDLE_APP_CONFIG="$GEM_HOME"
|
BUNDLE_APP_CONFIG="$GEM_HOME"
|
||||||
# path recommendation: https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
|
# path recommendation: https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
|
||||||
ENV PATH $BUNDLE_PATH/gems/bin:$PATH
|
ENV PATH $GEM_HOME/bin:$BUNDLE_PATH/gems/bin:$PATH
|
||||||
RUN mkdir -p "$GEM_HOME" "$BUNDLE_BIN" \
|
# adjust permissions of a few directories for running "gem install" as an arbitrary user
|
||||||
&& chmod 777 "$GEM_HOME" "$BUNDLE_BIN"
|
RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME"
|
||||||
|
# (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both)
|
||||||
|
|
||||||
CMD [ "irb" ]
|
CMD [ "irb" ]
|
||||||
|
|
|
@ -101,12 +101,12 @@ RUN set -ex \
|
||||||
# and don't create ".bundle" in all our apps
|
# and don't create ".bundle" in all our apps
|
||||||
ENV GEM_HOME /usr/local/bundle
|
ENV GEM_HOME /usr/local/bundle
|
||||||
ENV BUNDLE_PATH="$GEM_HOME" \
|
ENV BUNDLE_PATH="$GEM_HOME" \
|
||||||
BUNDLE_BIN="$GEM_HOME/bin" \
|
|
||||||
BUNDLE_SILENCE_ROOT_WARNING=1 \
|
BUNDLE_SILENCE_ROOT_WARNING=1 \
|
||||||
BUNDLE_APP_CONFIG="$GEM_HOME"
|
BUNDLE_APP_CONFIG="$GEM_HOME"
|
||||||
# path recommendation: https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
|
# path recommendation: https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
|
||||||
ENV PATH $BUNDLE_PATH/gems/bin:$PATH
|
ENV PATH $GEM_HOME/bin:$BUNDLE_PATH/gems/bin:$PATH
|
||||||
RUN mkdir -p "$GEM_HOME" "$BUNDLE_BIN" \
|
# adjust permissions of a few directories for running "gem install" as an arbitrary user
|
||||||
&& chmod 777 "$GEM_HOME" "$BUNDLE_BIN"
|
RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME"
|
||||||
|
# (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both)
|
||||||
|
|
||||||
CMD [ "irb" ]
|
CMD [ "irb" ]
|
||||||
|
|
|
@ -66,12 +66,12 @@ RUN set -ex \
|
||||||
# and don't create ".bundle" in all our apps
|
# and don't create ".bundle" in all our apps
|
||||||
ENV GEM_HOME /usr/local/bundle
|
ENV GEM_HOME /usr/local/bundle
|
||||||
ENV BUNDLE_PATH="$GEM_HOME" \
|
ENV BUNDLE_PATH="$GEM_HOME" \
|
||||||
BUNDLE_BIN="$GEM_HOME/bin" \
|
|
||||||
BUNDLE_SILENCE_ROOT_WARNING=1 \
|
BUNDLE_SILENCE_ROOT_WARNING=1 \
|
||||||
BUNDLE_APP_CONFIG="$GEM_HOME"
|
BUNDLE_APP_CONFIG="$GEM_HOME"
|
||||||
# path recommendation: https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
|
# path recommendation: https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
|
||||||
ENV PATH $BUNDLE_PATH/gems/bin:$PATH
|
ENV PATH $GEM_HOME/bin:$BUNDLE_PATH/gems/bin:$PATH
|
||||||
RUN mkdir -p "$GEM_HOME" "$BUNDLE_BIN" \
|
# adjust permissions of a few directories for running "gem install" as an arbitrary user
|
||||||
&& chmod 777 "$GEM_HOME" "$BUNDLE_BIN"
|
RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME"
|
||||||
|
# (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both)
|
||||||
|
|
||||||
CMD [ "irb" ]
|
CMD [ "irb" ]
|
||||||
|
|
|
@ -92,12 +92,12 @@ RUN set -ex \
|
||||||
# and don't create ".bundle" in all our apps
|
# and don't create ".bundle" in all our apps
|
||||||
ENV GEM_HOME /usr/local/bundle
|
ENV GEM_HOME /usr/local/bundle
|
||||||
ENV BUNDLE_PATH="$GEM_HOME" \
|
ENV BUNDLE_PATH="$GEM_HOME" \
|
||||||
BUNDLE_BIN="$GEM_HOME/bin" \
|
|
||||||
BUNDLE_SILENCE_ROOT_WARNING=1 \
|
BUNDLE_SILENCE_ROOT_WARNING=1 \
|
||||||
BUNDLE_APP_CONFIG="$GEM_HOME"
|
BUNDLE_APP_CONFIG="$GEM_HOME"
|
||||||
# path recommendation: https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
|
# path recommendation: https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
|
||||||
ENV PATH $BUNDLE_PATH/gems/bin:$PATH
|
ENV PATH $GEM_HOME/bin:$BUNDLE_PATH/gems/bin:$PATH
|
||||||
RUN mkdir -p "$GEM_HOME" "$BUNDLE_BIN" \
|
# adjust permissions of a few directories for running "gem install" as an arbitrary user
|
||||||
&& chmod 777 "$GEM_HOME" "$BUNDLE_BIN"
|
RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME"
|
||||||
|
# (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both)
|
||||||
|
|
||||||
CMD [ "irb" ]
|
CMD [ "irb" ]
|
||||||
|
|
|
@ -66,12 +66,12 @@ RUN set -ex \
|
||||||
# and don't create ".bundle" in all our apps
|
# and don't create ".bundle" in all our apps
|
||||||
ENV GEM_HOME /usr/local/bundle
|
ENV GEM_HOME /usr/local/bundle
|
||||||
ENV BUNDLE_PATH="$GEM_HOME" \
|
ENV BUNDLE_PATH="$GEM_HOME" \
|
||||||
BUNDLE_BIN="$GEM_HOME/bin" \
|
|
||||||
BUNDLE_SILENCE_ROOT_WARNING=1 \
|
BUNDLE_SILENCE_ROOT_WARNING=1 \
|
||||||
BUNDLE_APP_CONFIG="$GEM_HOME"
|
BUNDLE_APP_CONFIG="$GEM_HOME"
|
||||||
# path recommendation: https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
|
# path recommendation: https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
|
||||||
ENV PATH $BUNDLE_PATH/gems/bin:$PATH
|
ENV PATH $GEM_HOME/bin:$BUNDLE_PATH/gems/bin:$PATH
|
||||||
RUN mkdir -p "$GEM_HOME" "$BUNDLE_BIN" \
|
# adjust permissions of a few directories for running "gem install" as an arbitrary user
|
||||||
&& chmod 777 "$GEM_HOME" "$BUNDLE_BIN"
|
RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME"
|
||||||
|
# (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both)
|
||||||
|
|
||||||
CMD [ "irb" ]
|
CMD [ "irb" ]
|
||||||
|
|
|
@ -92,12 +92,12 @@ RUN set -ex \
|
||||||
# and don't create ".bundle" in all our apps
|
# and don't create ".bundle" in all our apps
|
||||||
ENV GEM_HOME /usr/local/bundle
|
ENV GEM_HOME /usr/local/bundle
|
||||||
ENV BUNDLE_PATH="$GEM_HOME" \
|
ENV BUNDLE_PATH="$GEM_HOME" \
|
||||||
BUNDLE_BIN="$GEM_HOME/bin" \
|
|
||||||
BUNDLE_SILENCE_ROOT_WARNING=1 \
|
BUNDLE_SILENCE_ROOT_WARNING=1 \
|
||||||
BUNDLE_APP_CONFIG="$GEM_HOME"
|
BUNDLE_APP_CONFIG="$GEM_HOME"
|
||||||
# path recommendation: https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
|
# path recommendation: https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
|
||||||
ENV PATH $BUNDLE_PATH/gems/bin:$PATH
|
ENV PATH $GEM_HOME/bin:$BUNDLE_PATH/gems/bin:$PATH
|
||||||
RUN mkdir -p "$GEM_HOME" "$BUNDLE_BIN" \
|
# adjust permissions of a few directories for running "gem install" as an arbitrary user
|
||||||
&& chmod 777 "$GEM_HOME" "$BUNDLE_BIN"
|
RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME"
|
||||||
|
# (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both)
|
||||||
|
|
||||||
CMD [ "irb" ]
|
CMD [ "irb" ]
|
||||||
|
|
|
@ -101,12 +101,12 @@ RUN set -ex \
|
||||||
# and don't create ".bundle" in all our apps
|
# and don't create ".bundle" in all our apps
|
||||||
ENV GEM_HOME /usr/local/bundle
|
ENV GEM_HOME /usr/local/bundle
|
||||||
ENV BUNDLE_PATH="$GEM_HOME" \
|
ENV BUNDLE_PATH="$GEM_HOME" \
|
||||||
BUNDLE_BIN="$GEM_HOME/bin" \
|
|
||||||
BUNDLE_SILENCE_ROOT_WARNING=1 \
|
BUNDLE_SILENCE_ROOT_WARNING=1 \
|
||||||
BUNDLE_APP_CONFIG="$GEM_HOME"
|
BUNDLE_APP_CONFIG="$GEM_HOME"
|
||||||
# path recommendation: https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
|
# path recommendation: https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
|
||||||
ENV PATH $BUNDLE_PATH/gems/bin:$PATH
|
ENV PATH $GEM_HOME/bin:$BUNDLE_PATH/gems/bin:$PATH
|
||||||
RUN mkdir -p "$GEM_HOME" "$BUNDLE_BIN" \
|
# adjust permissions of a few directories for running "gem install" as an arbitrary user
|
||||||
&& chmod 777 "$GEM_HOME" "$BUNDLE_BIN"
|
RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME"
|
||||||
|
# (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both)
|
||||||
|
|
||||||
CMD [ "irb" ]
|
CMD [ "irb" ]
|
||||||
|
|
|
@ -66,12 +66,12 @@ RUN set -ex \
|
||||||
# and don't create ".bundle" in all our apps
|
# and don't create ".bundle" in all our apps
|
||||||
ENV GEM_HOME /usr/local/bundle
|
ENV GEM_HOME /usr/local/bundle
|
||||||
ENV BUNDLE_PATH="$GEM_HOME" \
|
ENV BUNDLE_PATH="$GEM_HOME" \
|
||||||
BUNDLE_BIN="$GEM_HOME/bin" \
|
|
||||||
BUNDLE_SILENCE_ROOT_WARNING=1 \
|
BUNDLE_SILENCE_ROOT_WARNING=1 \
|
||||||
BUNDLE_APP_CONFIG="$GEM_HOME"
|
BUNDLE_APP_CONFIG="$GEM_HOME"
|
||||||
# path recommendation: https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
|
# path recommendation: https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
|
||||||
ENV PATH $BUNDLE_PATH/gems/bin:$PATH
|
ENV PATH $GEM_HOME/bin:$BUNDLE_PATH/gems/bin:$PATH
|
||||||
RUN mkdir -p "$GEM_HOME" "$BUNDLE_BIN" \
|
# adjust permissions of a few directories for running "gem install" as an arbitrary user
|
||||||
&& chmod 777 "$GEM_HOME" "$BUNDLE_BIN"
|
RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME"
|
||||||
|
# (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both)
|
||||||
|
|
||||||
CMD [ "irb" ]
|
CMD [ "irb" ]
|
||||||
|
|
|
@ -92,12 +92,12 @@ RUN set -ex \
|
||||||
# and don't create ".bundle" in all our apps
|
# and don't create ".bundle" in all our apps
|
||||||
ENV GEM_HOME /usr/local/bundle
|
ENV GEM_HOME /usr/local/bundle
|
||||||
ENV BUNDLE_PATH="$GEM_HOME" \
|
ENV BUNDLE_PATH="$GEM_HOME" \
|
||||||
BUNDLE_BIN="$GEM_HOME/bin" \
|
|
||||||
BUNDLE_SILENCE_ROOT_WARNING=1 \
|
BUNDLE_SILENCE_ROOT_WARNING=1 \
|
||||||
BUNDLE_APP_CONFIG="$GEM_HOME"
|
BUNDLE_APP_CONFIG="$GEM_HOME"
|
||||||
# path recommendation: https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
|
# path recommendation: https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
|
||||||
ENV PATH $BUNDLE_PATH/gems/bin:$PATH
|
ENV PATH $GEM_HOME/bin:$BUNDLE_PATH/gems/bin:$PATH
|
||||||
RUN mkdir -p "$GEM_HOME" "$BUNDLE_BIN" \
|
# adjust permissions of a few directories for running "gem install" as an arbitrary user
|
||||||
&& chmod 777 "$GEM_HOME" "$BUNDLE_BIN"
|
RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME"
|
||||||
|
# (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both)
|
||||||
|
|
||||||
CMD [ "irb" ]
|
CMD [ "irb" ]
|
||||||
|
|
|
@ -101,12 +101,12 @@ RUN set -ex \
|
||||||
# and don't create ".bundle" in all our apps
|
# and don't create ".bundle" in all our apps
|
||||||
ENV GEM_HOME /usr/local/bundle
|
ENV GEM_HOME /usr/local/bundle
|
||||||
ENV BUNDLE_PATH="$GEM_HOME" \
|
ENV BUNDLE_PATH="$GEM_HOME" \
|
||||||
BUNDLE_BIN="$GEM_HOME/bin" \
|
|
||||||
BUNDLE_SILENCE_ROOT_WARNING=1 \
|
BUNDLE_SILENCE_ROOT_WARNING=1 \
|
||||||
BUNDLE_APP_CONFIG="$GEM_HOME"
|
BUNDLE_APP_CONFIG="$GEM_HOME"
|
||||||
# path recommendation: https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
|
# path recommendation: https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
|
||||||
ENV PATH $BUNDLE_PATH/gems/bin:$PATH
|
ENV PATH $GEM_HOME/bin:$BUNDLE_PATH/gems/bin:$PATH
|
||||||
RUN mkdir -p "$GEM_HOME" "$BUNDLE_BIN" \
|
# adjust permissions of a few directories for running "gem install" as an arbitrary user
|
||||||
&& chmod 777 "$GEM_HOME" "$BUNDLE_BIN"
|
RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME"
|
||||||
|
# (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both)
|
||||||
|
|
||||||
CMD [ "irb" ]
|
CMD [ "irb" ]
|
||||||
|
|
|
@ -66,12 +66,12 @@ RUN set -ex \
|
||||||
# and don't create ".bundle" in all our apps
|
# and don't create ".bundle" in all our apps
|
||||||
ENV GEM_HOME /usr/local/bundle
|
ENV GEM_HOME /usr/local/bundle
|
||||||
ENV BUNDLE_PATH="$GEM_HOME" \
|
ENV BUNDLE_PATH="$GEM_HOME" \
|
||||||
BUNDLE_BIN="$GEM_HOME/bin" \
|
|
||||||
BUNDLE_SILENCE_ROOT_WARNING=1 \
|
BUNDLE_SILENCE_ROOT_WARNING=1 \
|
||||||
BUNDLE_APP_CONFIG="$GEM_HOME"
|
BUNDLE_APP_CONFIG="$GEM_HOME"
|
||||||
# path recommendation: https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
|
# path recommendation: https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
|
||||||
ENV PATH $BUNDLE_PATH/gems/bin:$PATH
|
ENV PATH $GEM_HOME/bin:$BUNDLE_PATH/gems/bin:$PATH
|
||||||
RUN mkdir -p "$GEM_HOME" "$BUNDLE_BIN" \
|
# adjust permissions of a few directories for running "gem install" as an arbitrary user
|
||||||
&& chmod 777 "$GEM_HOME" "$BUNDLE_BIN"
|
RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME"
|
||||||
|
# (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both)
|
||||||
|
|
||||||
CMD [ "irb" ]
|
CMD [ "irb" ]
|
||||||
|
|
|
@ -92,12 +92,12 @@ RUN set -ex \
|
||||||
# and don't create ".bundle" in all our apps
|
# and don't create ".bundle" in all our apps
|
||||||
ENV GEM_HOME /usr/local/bundle
|
ENV GEM_HOME /usr/local/bundle
|
||||||
ENV BUNDLE_PATH="$GEM_HOME" \
|
ENV BUNDLE_PATH="$GEM_HOME" \
|
||||||
BUNDLE_BIN="$GEM_HOME/bin" \
|
|
||||||
BUNDLE_SILENCE_ROOT_WARNING=1 \
|
BUNDLE_SILENCE_ROOT_WARNING=1 \
|
||||||
BUNDLE_APP_CONFIG="$GEM_HOME"
|
BUNDLE_APP_CONFIG="$GEM_HOME"
|
||||||
# path recommendation: https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
|
# path recommendation: https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
|
||||||
ENV PATH $BUNDLE_PATH/gems/bin:$PATH
|
ENV PATH $GEM_HOME/bin:$BUNDLE_PATH/gems/bin:$PATH
|
||||||
RUN mkdir -p "$GEM_HOME" "$BUNDLE_BIN" \
|
# adjust permissions of a few directories for running "gem install" as an arbitrary user
|
||||||
&& chmod 777 "$GEM_HOME" "$BUNDLE_BIN"
|
RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME"
|
||||||
|
# (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both)
|
||||||
|
|
||||||
CMD [ "irb" ]
|
CMD [ "irb" ]
|
||||||
|
|
|
@ -101,12 +101,12 @@ RUN set -ex \
|
||||||
# and don't create ".bundle" in all our apps
|
# and don't create ".bundle" in all our apps
|
||||||
ENV GEM_HOME /usr/local/bundle
|
ENV GEM_HOME /usr/local/bundle
|
||||||
ENV BUNDLE_PATH="$GEM_HOME" \
|
ENV BUNDLE_PATH="$GEM_HOME" \
|
||||||
BUNDLE_BIN="$GEM_HOME/bin" \
|
|
||||||
BUNDLE_SILENCE_ROOT_WARNING=1 \
|
BUNDLE_SILENCE_ROOT_WARNING=1 \
|
||||||
BUNDLE_APP_CONFIG="$GEM_HOME"
|
BUNDLE_APP_CONFIG="$GEM_HOME"
|
||||||
# path recommendation: https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
|
# path recommendation: https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
|
||||||
ENV PATH $BUNDLE_PATH/gems/bin:$PATH
|
ENV PATH $GEM_HOME/bin:$BUNDLE_PATH/gems/bin:$PATH
|
||||||
RUN mkdir -p "$GEM_HOME" "$BUNDLE_BIN" \
|
# adjust permissions of a few directories for running "gem install" as an arbitrary user
|
||||||
&& chmod 777 "$GEM_HOME" "$BUNDLE_BIN"
|
RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME"
|
||||||
|
# (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both)
|
||||||
|
|
||||||
CMD [ "irb" ]
|
CMD [ "irb" ]
|
||||||
|
|
|
@ -68,12 +68,12 @@ RUN set -ex \
|
||||||
# and don't create ".bundle" in all our apps
|
# and don't create ".bundle" in all our apps
|
||||||
ENV GEM_HOME /usr/local/bundle
|
ENV GEM_HOME /usr/local/bundle
|
||||||
ENV BUNDLE_PATH="$GEM_HOME" \
|
ENV BUNDLE_PATH="$GEM_HOME" \
|
||||||
BUNDLE_BIN="$GEM_HOME/bin" \
|
|
||||||
BUNDLE_SILENCE_ROOT_WARNING=1 \
|
BUNDLE_SILENCE_ROOT_WARNING=1 \
|
||||||
BUNDLE_APP_CONFIG="$GEM_HOME"
|
BUNDLE_APP_CONFIG="$GEM_HOME"
|
||||||
# path recommendation: https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
|
# path recommendation: https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
|
||||||
ENV PATH $BUNDLE_PATH/gems/bin:$PATH
|
ENV PATH $GEM_HOME/bin:$BUNDLE_PATH/gems/bin:$PATH
|
||||||
RUN mkdir -p "$GEM_HOME" "$BUNDLE_BIN" \
|
# adjust permissions of a few directories for running "gem install" as an arbitrary user
|
||||||
&& chmod 777 "$GEM_HOME" "$BUNDLE_BIN"
|
RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME"
|
||||||
|
# (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both)
|
||||||
|
|
||||||
CMD [ "irb" ]
|
CMD [ "irb" ]
|
||||||
|
|
|
@ -92,12 +92,12 @@ RUN set -ex \
|
||||||
# and don't create ".bundle" in all our apps
|
# and don't create ".bundle" in all our apps
|
||||||
ENV GEM_HOME /usr/local/bundle
|
ENV GEM_HOME /usr/local/bundle
|
||||||
ENV BUNDLE_PATH="$GEM_HOME" \
|
ENV BUNDLE_PATH="$GEM_HOME" \
|
||||||
BUNDLE_BIN="$GEM_HOME/bin" \
|
|
||||||
BUNDLE_SILENCE_ROOT_WARNING=1 \
|
BUNDLE_SILENCE_ROOT_WARNING=1 \
|
||||||
BUNDLE_APP_CONFIG="$GEM_HOME"
|
BUNDLE_APP_CONFIG="$GEM_HOME"
|
||||||
# path recommendation: https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
|
# path recommendation: https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
|
||||||
ENV PATH $BUNDLE_PATH/gems/bin:$PATH
|
ENV PATH $GEM_HOME/bin:$BUNDLE_PATH/gems/bin:$PATH
|
||||||
RUN mkdir -p "$GEM_HOME" "$BUNDLE_BIN" \
|
# adjust permissions of a few directories for running "gem install" as an arbitrary user
|
||||||
&& chmod 777 "$GEM_HOME" "$BUNDLE_BIN"
|
RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME"
|
||||||
|
# (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both)
|
||||||
|
|
||||||
CMD [ "irb" ]
|
CMD [ "irb" ]
|
||||||
|
|
Loading…
Reference in a new issue