Skip to content

armgit / maybe

Public Imported from GitHub
0

The personal finance app for everyone

Split Dockerfile build commands for more clarity in CI

Zach Gollwitzer73f826fdf287
diff --git a/Dockerfile b/Dockerfile
index 2cad94b0..be0a38d4 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -26,9 +26,11 @@ RUN apt-get install --no-install-recommends -y build-essential git libpq-dev pkg
# Install application gems
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
+RUN bundle install
+
+RUN rm -rf ~/.bundle/ "${BUNDLE_PATH}"/ruby/*/cache "${BUNDLE_PATH}"/ruby/*/bundler/gems/*/.git
+
+RUN bundle exec bootsnap precompile --gemfile
# Copy application code
COPY . .