Skip to content

Commit 29fc932

Browse files
author
vitalie
committed
Docker updates
1 parent 0d6db42 commit 29fc932

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff 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+
2627
FROM base as builder
2728

2829
# packages required
@@ -38,7 +39,9 @@ COPY ./lib/travis/yml/version.rb ./lib/travis/yml/version.rb
3839
COPY 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

4447
FROM base
@@ -47,6 +50,7 @@ LABEL maintainer Travis CI GmbH <support+travis-live-docker-images@travis-ci.com
4750

4851
# Copy gems from builder
4952
COPY --from=builder /usr/local/bundle /usr/local/bundle
53+
COPY --from=builder /app/vendor ./vendor
5054

5155
# Copy app files
5256
COPY . ./

0 commit comments

Comments
 (0)