From 8b3d13a9208d84c5f9073b5abb047306779b6ace Mon Sep 17 00:00:00 2001 From: Vishnu Narayanan Date: Fri, 19 May 2023 17:59:33 +0530 Subject: [PATCH] fix: add libvips to Dockerfile for rails7 (#7133) Fixes: #7124 Fixes: https://linear.app/chatwoot/issue/CW-1805/investigate-217-upgrade-issues-for-dockerk8s-installations --- docker/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 39a7b157d..126a1174e 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -36,7 +36,7 @@ COPY Gemfile Gemfile.lock ./ # https://github.com/googleapis/google-cloud-ruby/issues/13306 # adding xz as nokogiri was failing to build libxml # https://github.com/chatwoot/chatwoot/issues/4045 -RUN apk update && apk add --no-cache build-base musl ruby-full ruby-dev gcc make musl-dev openssl openssl-dev g++ linux-headers xz +RUN apk update && apk add --no-cache build-base musl ruby-full ruby-dev gcc make musl-dev openssl openssl-dev g++ linux-headers xz vips RUN bundle config set --local force_ruby_platform true # Do not install development or test gems in production @@ -97,6 +97,7 @@ RUN apk update && apk add --no-cache \ postgresql-client \ imagemagick \ git \ + vips \ && gem install bundler RUN if [ "$RAILS_ENV" != "production" ]; then \