1
0
Fork 0
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:
Tianon Gravi 2018-05-21 12:34:41 -07:00
parent 4981a43ffe
commit 699a043113
20 changed files with 80 additions and 80 deletions

View file

@ -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" ]

View file

@ -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" ]

View file

@ -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" ]

View file

@ -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" ]

View file

@ -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" ]

View file

@ -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" ]

View file

@ -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" ]

View file

@ -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" ]

View file

@ -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" ]

View file

@ -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" ]

View file

@ -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" ]

View file

@ -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" ]

View file

@ -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" ]

View file

@ -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" ]

View file

@ -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" ]

View file

@ -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" ]

View file

@ -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" ]

View file

@ -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" ]

View file

@ -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" ]

View file

@ -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" ]