Update Dockerfile (#80258)

Install cmake as part of conda install (as system one is too old)
Install other packages from requirements as well

Fixes https://github.com/pytorch/pytorch/issues/80212

Pull Request resolved: https://github.com/pytorch/pytorch/pull/80258
Approved by: https://github.com/seemethere
diff --git a/Dockerfile b/Dockerfile
index a8dc7f1..1bd522a 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -28,11 +28,13 @@
 
 FROM dev-base as conda
 ARG PYTHON_VERSION=3.8
+COPY requirements.txt .
 RUN curl -fsSL -v -o ~/miniconda.sh -O  https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh  && \
     chmod +x ~/miniconda.sh && \
     ~/miniconda.sh -b -p /opt/conda && \
     rm ~/miniconda.sh && \
-    /opt/conda/bin/conda install -y python=${PYTHON_VERSION} conda-build pyyaml numpy ipython && \
+    /opt/conda/bin/conda install -y python=${PYTHON_VERSION} cmake conda-build pyyaml numpy ipython && \
+    /opt/conda/bin/python -mpip install -r requirements.txt && \
     /opt/conda/bin/conda clean -ya
 
 FROM dev-base as submodule-update