1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-19 05:09:38 +02:00

Split Dockerfile build commands for more clarity in CI

This commit is contained in:
Zach Gollwitzer 2025-02-13 15:04:15 -05:00
parent 999f1c5190
commit 73f826fdf2

View file

@ -26,9 +26,11 @@ RUN apt-get install --no-install-recommends -y build-essential git libpq-dev pkg
# Install application gems # Install application gems
COPY .ruby-version Gemfile Gemfile.lock ./ COPY .ruby-version Gemfile Gemfile.lock ./
RUN bundle install && \ RUN bundle install
rm -rf ~/.bundle/ "${BUNDLE_PATH}"/ruby/*/cache "${BUNDLE_PATH}"/ruby/*/bundler/gems/*/.git && \
bundle exec bootsnap precompile --gemfile RUN rm -rf ~/.bundle/ "${BUNDLE_PATH}"/ruby/*/cache "${BUNDLE_PATH}"/ruby/*/bundler/gems/*/.git
RUN bundle exec bootsnap precompile --gemfile
# Copy application code # Copy application code
COPY . . COPY . .