If you may received an error "Couldn't find the binary git" when execute the command yarn install for packages installed for your NodeJs application, 

​$ yarn install

[1/4] Resolving packages...
[2/4] Fetching packages...
error Couldn't find the binary git
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

Just use the below steps for docker image,

    image: node:14-alpine
      - apk add --no-cache git
      - yarn

If you may gets an error on Linux platform like Ubuntu, Debian, RedHat, CentOS and etc...

Install git package for the following Linux patform

for Ubuntu or Debian operating system

apt-get install git -y

for RedHat or CentOS operating system,

yum install git  -y