=> ERROR [ 5/13] RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - 0.6s ------ > [ 5/13] RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -: #9 0.285 Warning: apt-key output should not be parsed (stdout is not a terminal) #9 0.543 gpg: no valid OpenPGP data found. #9 0.543 Segmentation fault ------ failed to solve: rpc error: code = Unknown desc = executor failed running [/bin/sh -c curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -]: exit code: 2
I found problem i think, Gemfile.lock file contains nokogiri. When moving Gemfile.lock and bundle install then problem solved.