fix: installation of gem bundles (lograge, rack-mini-profiler, stackprof, nokogiri) in docker (#6897)
This commit is contained in:
@@ -15,7 +15,7 @@ ENV RAILS_ENV ${RAILS_ENV}
|
|||||||
|
|
||||||
ENV BUNDLE_PATH="/gems"
|
ENV BUNDLE_PATH="/gems"
|
||||||
|
|
||||||
RUN apk add --no-cache \
|
RUN apk update && apk add --no-cache \
|
||||||
openssl \
|
openssl \
|
||||||
tar \
|
tar \
|
||||||
build-base \
|
build-base \
|
||||||
@@ -36,7 +36,7 @@ COPY Gemfile Gemfile.lock ./
|
|||||||
# https://github.com/googleapis/google-cloud-ruby/issues/13306
|
# https://github.com/googleapis/google-cloud-ruby/issues/13306
|
||||||
# adding xz as nokogiri was failing to build libxml
|
# adding xz as nokogiri was failing to build libxml
|
||||||
# https://github.com/chatwoot/chatwoot/issues/4045
|
# 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
|
RUN bundle config set --local force_ruby_platform true
|
||||||
|
|
||||||
# Do not install development or test gems in production
|
# Do not install development or test gems in production
|
||||||
@@ -90,7 +90,8 @@ ARG RAILS_ENV=production
|
|||||||
ENV RAILS_ENV ${RAILS_ENV}
|
ENV RAILS_ENV ${RAILS_ENV}
|
||||||
ENV BUNDLE_PATH="/gems"
|
ENV BUNDLE_PATH="/gems"
|
||||||
|
|
||||||
RUN apk add --no-cache \
|
RUN apk update && apk add --no-cache \
|
||||||
|
build-base \
|
||||||
openssl \
|
openssl \
|
||||||
tzdata \
|
tzdata \
|
||||||
postgresql-client \
|
postgresql-client \
|
||||||
|
|||||||
Reference in New Issue
Block a user