From 70744262a176b7019e1a8c7b2d0f2a86b0c9edfd Mon Sep 17 00:00:00 2001 From: Igor Zubkov Date: Wed, 13 Dec 2023 18:46:17 +0100 Subject: [PATCH] Fix trivy --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index 710bd2d6..45ed7dad 100644 --- a/Dockerfile +++ b/Dockerfile @@ -47,6 +47,8 @@ COPY . . # Precompile bootsnap code for faster boot times RUN bundle exec bootsnap precompile app/ lib/ +# Workaround for nokogiri and trivy +RUN rm -f /usr/local/bundle/ruby/3.2.0/gems/nokogiri-1.15.5-x86_64-linux/dependencies.yml # Final stage for app image FROM base