-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
vitalie
committed
Jul 4, 2023
1 parent
0d6db42
commit 29fc932
Showing
1 changed file
with
5 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,7 @@ RUN bundle config set --global no-cache 'true' && \ | |
bundle config set --global jobs `expr $(cat /proc/cpuinfo | grep -c 'cpu cores')` && \ | ||
bundle config set --global retry 3 | ||
|
||
|
||
FROM base as builder | ||
|
||
# packages required | ||
|
@@ -38,7 +39,9 @@ COPY ./lib/travis/yml/version.rb ./lib/travis/yml/version.rb | |
COPY Gemfile Gemfile.lock ./ | ||
|
||
# Install gems | ||
RUN bundle install | ||
RUN bundle install && \ | ||
rm -rf /app/vendor/bundle/ruby/2.6.0/cache/* && \ | ||
for i in `find /app/vendor/ -name \*.o -o -name \*.c -o -name \*.h`; do rm -f $i; done | ||
|
||
|
||
FROM base | ||
|
@@ -47,6 +50,7 @@ LABEL maintainer Travis CI GmbH <[email protected] | |
|
||
# Copy gems from builder | ||
COPY --from=builder /usr/local/bundle /usr/local/bundle | ||
COPY --from=builder /app/vendor ./vendor | ||
|
||
# Copy app files | ||
COPY . ./ | ||
|