mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-10-31 11:08:04 +00:00 
			
		
		
		
	fix: nokogiri gem build failure in docker (#4060)
tar (child): xz: Cannot exec: No such file or directory¶ Starting in v1.13.2, the source archive used for libxml2 and libxslt is compressed with xz (previous versions were compressed with gzip. As a result, when compiling from source, your system will need to have xz installed in order to extract the source code for these libraries.
This commit is contained in:
		| @@ -35,7 +35,9 @@ COPY Gemfile Gemfile.lock ./ | |||||||
|  |  | ||||||
| # natively compile grpc and protobuf to support alpine musl (dialogflow-docker workflow) | # natively compile grpc and protobuf to support alpine musl (dialogflow-docker workflow) | ||||||
| # https://github.com/googleapis/google-cloud-ruby/issues/13306 | # https://github.com/googleapis/google-cloud-ruby/issues/13306 | ||||||
| RUN apk add --no-cache musl ruby-full ruby-dev gcc make musl-dev openssl openssl-dev g++ linux-headers | # 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 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 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Vishnu Narayanan
					Vishnu Narayanan