Skip to content

Commit

Permalink
fix: gem install grpc takes lot of time to complete
Browse files Browse the repository at this point in the history
  • Loading branch information
milesibastos committed Aug 22, 2024
1 parent cede276 commit a8dd906
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ COPY Gemfile Gemfile.lock ./
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

# https://github.com/grpc/grpc/issues/29489#issuecomment-1108496534
RUN gem install grpc:1.62.0

# Do not install development or test gems in production
RUN if [ "$RAILS_ENV" = "production" ]; then \
bundle config set without 'development test'; bundle install -j 4 -r 3; \
Expand Down

0 comments on commit a8dd906

Please sign in to comment.