mirror of
https://github.com/we-promise/sure.git
synced 2026-06-02 09:19:02 +00:00
Split Dockerfile build commands for more clarity in CI
This commit is contained in:
@@ -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 . .
|
||||
|
||||
Reference in New Issue
Block a user