Skip to content

armgit / maybe

Public Imported from GitHub
0

The personal finance app for everyone

Keep .ruby_version file in Docker (#523)

Dave Corson-Knowles0e77bab00b87
diff --git a/Dockerfile b/Dockerfile
index a4818e54..8bdcfd8b 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