From 0e77bab00b87101046d0d99f9a5ba97955e8fb1f Mon Sep 17 00:00:00 2001 From: Dave Corson-Knowles Date: Thu, 7 Mar 2024 07:43:18 -0800 Subject: [PATCH] Keep .ruby_version file in Docker (#523) * Use our .ruby-version file in Bundler so it is managed in only 1 place See: https://gorails.com/episodes/bundler-ruby-version-file * Copy Ruby Version file into Docker * Update Dockerfile Signed-off-by: Zach Gollwitzer --------- Signed-off-by: Zach Gollwitzer Co-authored-by: Zach Gollwitzer --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index a4818e549d8..8bdcfd8b7ef 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,7 +25,7 @@ FROM base as build RUN apt-get install --no-install-recommends -y build-essential git libpq-dev pkg-config # Install application gems -COPY Gemfile Gemfile.lock ./ +COPY .ruby-version Gemfile Gemfile.lock ./ RUN bundle install && \ rm -rf ~/.bundle/ "${BUNDLE_PATH}"/ruby/*/cache "${BUNDLE_PATH}"/ruby/*/bundler/gems/*/.git && \ bundle exec bootsnap precompile --gemfile