From 0c9284ec511bfc24f6426b357f56ad38119f5017 Mon Sep 17 00:00:00 2001 From: Sam Date: Fri, 25 Aug 2023 04:33:55 +1000 Subject: [PATCH] FEATURE: add ripgrep to the base image (#728) ripgrep is going to be used by discourse-ai to extract context from files on the local disk. This does increase the size of the image by 1.7MB or so, but heavily simplifies deployment Alternative mechanisms exists such as packing the binary in a gem but we would pay more at install time delays. --- image/base/slim.Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/image/base/slim.Dockerfile b/image/base/slim.Dockerfile index f36c593..3a04a1f 100644 --- a/image/base/slim.Dockerfile +++ b/image/base/slim.Dockerfile @@ -45,7 +45,7 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get -y install autoconf build-essential c libreadline-dev anacron wget \ psmisc whois brotli libunwind-dev \ libtcmalloc-minimal4 cmake \ - pngcrush pngquant + pngcrush pngquant ripgrep RUN sed -i -e 's/start -q anacron/anacron -s/' /etc/cron.d/anacron RUN sed -i.bak 's/$ModLoad imklog/#$ModLoad imklog/' /etc/rsyslog.conf RUN sed -i.bak 's/module(load="imklog")/#module(load="imklog")/' /etc/rsyslog.conf -- 2.25.1