From 37fde64c67ef47433d62bfa2c0a9d5ba505f0fff Mon Sep 17 00:00:00 2001 From: shaheer-haider Date: Wed, 26 Apr 2023 16:34:17 +0500 Subject: [PATCH] fix: installation of gem bundles (lograge, rack-mini-profiler, stackprof, nokogiri) in docker (#6897) --- docker/Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 4b7fdd718..4ff968674 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -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 \