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:
parent
999f1c5190
commit
73f826fdf2
1 changed files with 5 additions and 3 deletions
|
@ -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 . .
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue