File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ RUN bundle config set --global no-cache 'true' && \
2323 bundle config set --global jobs `expr $(cat /proc/cpuinfo | grep -c 'cpu cores' )` && \
2424 bundle config set --global retry 3
2525
26+
2627FROM base as builder
2728
2829# packages required
@@ -38,7 +39,9 @@ COPY ./lib/travis/yml/version.rb ./lib/travis/yml/version.rb
3839COPY Gemfile Gemfile.lock ./
3940
4041# Install gems
41- RUN bundle install
42+ RUN bundle install && \
43+ rm -rf /app/vendor/bundle/ruby/2.6.0/cache/* && \
44+ for i in `find /app/vendor/ -name \* .o -o -name \* .c -o -name \* .h`; do rm -f $i; done
4245
4346
4447FROM base
@@ -47,6 +50,7 @@ LABEL maintainer Travis CI GmbH <support+travis-live-docker-images@travis-ci.com
4750
4851# Copy gems from builder
4952COPY --from=builder /usr/local/bundle /usr/local/bundle
53+ COPY --from=builder /app/vendor ./vendor
5054
5155# Copy app files
5256COPY . ./
You can’t perform that action at this time.
0 commit comments