I've removed python-dev (which we never needed cause the container comes with python 3.10), and also adjusted the pip install process to work better. Namely, I merged the tensorflow install line with the requirements line. Installing tensorflow separately would also upgrade protobuf to a version that is incompatible with streamlit. The --use-pep517 is to address https://github.com/pypa/pip/issues/8559.
python-dev no longer exists in the latest versions of debian, see e.g. the build failure here https://app.circleci.com/pipelines/github/AlignmentResearch/KataGoVisualizer/653/workflows/c09a6929-e51a-4458-8b5f-eeee32dba983/jobs/1316
I've removed python-dev (which we never needed cause the container comes with python 3.10), and also adjusted the pip install process to work better. Namely, I merged the tensorflow install line with the requirements line. Installing tensorflow separately would also upgrade protobuf to a version that is incompatible with streamlit. The
--use-pep517
is to address https://github.com/pypa/pip/issues/8559.