Skip to content

Commit

Permalink
QD-9968 Set BUNDLE_PATH in BUNDLE_USER_CONFIG/config
Browse files Browse the repository at this point in the history
  • Loading branch information
tiulpin committed Oct 7, 2024
1 parent d56abf1 commit 4669e73
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions next/base/ruby.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ ENV JAVA_HOME="$QODANA_DIST/jbr" \
QODANA_CONF="$HOME/.config/idea" \
PATH="$QODANA_DIST/bin:$PATH"

ENV BUNDLE_USER_CONFIG="$HOME/.bundle"

# hadolint ignore=SC2174
RUN --mount=target=/var/lib/apt/lists,type=cache,sharing=locked \
--mount=target=/var/cache/apt,type=cache,sharing=locked \
Expand All @@ -36,7 +38,10 @@ RUN --mount=target=/var/lib/apt/lists,type=cache,sharing=locked \
apt-get autoremove -y && apt-get clean && \
chmod 777 -R $HOME && \
echo 'root:x:0:0:root:/root:/bin/bash' > /etc/passwd && chmod 666 /etc/passwd && \
git config --global --add safe.directory '*'
git config --global --add safe.directory '*' && \
mkdir -p $BUNDLE_USER_CONFIG && \
echo --- >> $BUNDLE_USER_CONFIG/config && \
echo "BUNDLE_PATH: ${HOME}/.local/share/gem" >> $BUNDLE_USER_CONFIG/config

RUN apt-get update && \
apt-get install -y sudo build-essential && \
Expand All @@ -58,5 +63,3 @@ RUN ln -s /usr/local/lib/node_modules/npm/bin/npm-cli.js /usr/local/bin/npm && \
yarn --version && \
npm install -g eslint@$ESLINT_VERSION pnpm@$PNPM_VERSION && npm config set update-notifier false && \
chmod 777 -R "$HOME/.npm" "$HOME/.npmrc"

RUN unset GEM_HOME BUNDLE_APP_CONFIG

0 comments on commit 4669e73

Please sign in to comment.