title: unable to execute 'gcc': No such file or directory when running docker build
body: <p>I was trying to create a docker image for my python script and upload it to AWS ECR and then use it in Lambda. Our python runtime is 3.8 shown on the AWS console so I just followed this manual:
  <a href="https://docs.aws.amazon.com/lambda/latest/dg/images-create.html#images-create-from-base" rel="nofollow noreferrer">https://docs.aws.amazon.com/lambda/latest/dg/images-create.html#images-create-from-base</a></p>
  <p>But I got the error when I run docker build -t image-name .</p>
  <pre><code>#6 14.02 gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/var/lang/include/python3.8 -c bitarray/_bitarray.c -o build/temp.linux-x86_64-3.8/bitarray/_bitarray.o
  #6 14.02 unable to execute 'gcc': No such file or directory
  #6 14.02 error: command 'gcc' failed with exit status 1
  </code></pre>
  <p>I double checked and I have gcc installed on my macOS:</p>
  <pre><code>Warning: gcc 11.2.0 is already installed and up-to-date.
  To reinstall 11.2.0, run:
  brew reinstall gcc
  </code></pre>
  <p>Would appreciate some help on resolving this. thanks!</p>
  <p>EDIT:
  This issue originates from me unable to import a CPython library cytoolz when running my script on Lambda, so I consulted these issues to simulate the runtime using docker.
  <a href="https://github.com/Miserlou/Zappa/issues/1717#issuecomment-445821158" rel="nofollow noreferrer">https://github.com/Miserlou/Zappa/issues/1717#issuecomment-445821158</a>
  <a href="https://github.com/ethereum/web3.py/issues/1456#issuecomment-866862759" rel="nofollow noreferrer">https://github.com/ethereum/web3.py/issues/1456#issuecomment-866862759</a></p>
  <p>If there is a better way to import cytoolz without using docker I would also def appreciate some hints!</p>
  <p>Thx!!</p>