mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-19 05:09:38 +02:00
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 <zach.gollwitzer@gmail.com> --------- Signed-off-by: Zach Gollwitzer <zach.gollwitzer@gmail.com> Co-authored-by: Zach Gollwitzer <zach.gollwitzer@gmail.com>
This commit is contained in:
parent
6f0e410684
commit
0e77bab00b
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue