Skip to content

Commit

Permalink
Merge pull request #6 from linuxserver/ruby-version
Browse files Browse the repository at this point in the history
  • Loading branch information
thespad authored Nov 19, 2024
2 parents d536463 + 65eabc5 commit aab9b71
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,14 @@ RUN \
apk add --no-cache --virtual=build-dependencies \
build-base \
git \
grep \
libffi-dev \
mariadb-dev \
nodejs \
npm \
postgresql-dev \
ruby-dev && \
ruby-dev \
yaml-dev && \
echo "**** install manyfold ****" && \
mkdir -p /app/www && \
if [ -z ${MANYFOLD_VERSION+x} ]; then \
Expand All @@ -55,7 +57,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
7 changes: 5 additions & 2 deletions Dockerfile.aarch64
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,14 @@ RUN \
apk add --no-cache --virtual=build-dependencies \
build-base \
git \
grep \
libffi-dev \
mariadb-dev \
nodejs \
npm \
postgresql-dev \
ruby-dev && \
ruby-dev \
yaml-dev && \
echo "**** install manyfold ****" && \
mkdir -p /app/www && \
if [ -z ${MANYFOLD_VERSION+x} ]; then \
Expand All @@ -55,7 +57,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 aab9b71

Please sign in to comment.