fix: installation of gem bundles (lograge, rack-mini-profiler, stackprof, nokogiri) in docker (#6897)

This commit is contained in:
shaheer-haider
2023-04-26 16:34:17 +05:00
committed by GitHub
parent 3c2d6faf68
commit 37fde64c67

View File

@@ -15,7 +15,7 @@ ENV RAILS_ENV ${RAILS_ENV}
ENV BUNDLE_PATH="/gems"
RUN apk add --no-cache \
RUN apk update && apk add --no-cache \
openssl \
tar \
build-base \
@@ -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 add --no-cache 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
RUN bundle config set --local force_ruby_platform true
# Do not install development or test gems in production
@@ -90,7 +90,8 @@ ARG RAILS_ENV=production
ENV RAILS_ENV ${RAILS_ENV}
ENV BUNDLE_PATH="/gems"
RUN apk add --no-cache \
RUN apk update && apk add --no-cache \
build-base \
openssl \
tzdata \
postgresql-client \