I was executing this command: sudo docker build - < Dockerfile to build the image.
And then i'm getting this error:
failed to solve: process "/bin/sh -c make -j $(getconf _NPROCESSORS_ONLN) OPTFLAGS=\"\" PG_CONFIG=${PGCONFIG}" did not complete successfully: exit code: 2
My environment was WSL - Ubuntu on Windows 11.
Can somebody help me?

I was executing this command:
sudo docker build - < Dockerfileto build the image.And then i'm getting this error:
failed to solve: process "/bin/sh -c make -j $(getconf _NPROCESSORS_ONLN) OPTFLAGS=\"\" PG_CONFIG=${PGCONFIG}" did not complete successfully: exit code: 2My environment was WSL - Ubuntu on Windows 11.
Can somebody help me?