Merge pull request #4677 from Growstuff/fix-docker-build-missing-ruby-version-8858247702805966576

Fix Docker build by copying .ruby-version before bundle install
This commit is contained in:
Daniel O'Connor
2026-06-23 22:50:58 +09:30
committed by GitHub

View File

@@ -25,7 +25,7 @@ ENV RAILS_ENV=production \
WORKDIR /app
# Install gems
COPY Gemfile Gemfile.lock ./
COPY Gemfile Gemfile.lock .ruby-version ./
RUN bundle config set --local deployment 'true' && \
bundle config set --local without 'development test' && \
bundle install --jobs 4 --retry 3