From 29fc9329656731e81693d03eaec83dcdcff72c5c Mon Sep 17 00:00:00 2001 From: vitalie Date: Tue, 4 Jul 2023 11:22:26 +0300 Subject: [PATCH] Docker updates --- Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index b812e16f..b2eab971 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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