Skip to content

Commit

Permalink
Match .ruby-version to installed Ruby version
Browse files Browse the repository at this point in the history
  • Loading branch information
thespad committed Nov 19, 2024
1 parent d536463 commit c98c0a3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ RUN \
apk add --no-cache --virtual=build-dependencies \
build-base \
git \
grep \
libffi-dev \
mariadb-dev \
nodejs \
Expand All @@ -55,7 +56,8 @@ RUN \
corepack enable && \
yarn install && \
gem install foreman && \
sed -i 's/\d.\d.\d/3.3.3/' .ruby-version && \
RUBY=$(apk list ruby | grep -oP '.*-\K(\d\.\d\.\d)') && \
sed -i "s/\d.\d.\d/${RUBY}/" .ruby-version && \
bundle config set --local deployment 'true' && \
bundle config set --local without 'development test' && \
bundle config force_ruby_platform true && \
Expand Down
4 changes: 3 additions & 1 deletion Dockerfile.aarch64
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ RUN \
apk add --no-cache --virtual=build-dependencies \
build-base \
git \
grep \
libffi-dev \
mariadb-dev \
nodejs \
Expand All @@ -55,7 +56,8 @@ RUN \
corepack enable && \
yarn install && \
gem install foreman && \
sed -i 's/\d.\d.\d/3.3.3/' .ruby-version && \
RUBY=$(apk list ruby | grep -oP '.*-\K(\d\.\d\.\d)') && \
sed -i "s/\d.\d.\d/${RUBY}/" .ruby-version && \
bundle config set --local deployment 'true' && \
bundle config set --local without 'development test' && \
bundle config force_ruby_platform true && \
Expand Down

0 comments on commit c98c0a3

Please sign in to comment.