Compare commits

...
Author SHA1 Message Date
Vishnu Narayanan 3e9ca9733f fix: add libvips to Dockerfile for rails7 2023-05-18 18:37:28 +05:30
+3 -1
View File
@@ -36,7 +36,8 @@ 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
# adding vips for rails7 image processing support
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 +98,7 @@ RUN apk update && apk add --no-cache \
postgresql-client \
imagemagick \
git \
vips \
&& gem install bundler
RUN if [ "$RAILS_ENV" != "production" ]; then \