From 10e0fc8655150afdcf4dbd9ac67dcfb2ccbb18d9 Mon Sep 17 00:00:00 2001 From: Yevgeni Litvin Date: Fri, 19 Mar 2021 17:47:45 -0700 Subject: [PATCH] Fixing Dockerfile (#661) Request pyarrow and opencv to be pip installed from binary. (building pyarrow from source does not propeperly work in our container and is not needed; opencv takes a long time to build, so binaries are ok) --- docker/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 6ae0c8498..3701f6d5a 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -42,7 +42,7 @@ RUN python3.6 -m pip install pip --upgrade RUN python3.6 -m pip install wheel RUN python3.6 -m venv /petastorm_venv3.6 RUN /petastorm_venv3.6/bin/pip3.6 install --no-cache scikit-build -RUN /petastorm_venv3.6/bin/pip3.6 install --no-cache -e /petastorm/[test,tf,torch,docs,opencv] +RUN /petastorm_venv3.6/bin/pip3.6 install --no-cache -e /petastorm/[test,tf,torch,docs,opencv] --only-binary pyarrow --only-binary opencv-python RUN /petastorm_venv3.6/bin/pip3.6 uninstall -y petastorm # Set up Python3 environment @@ -50,7 +50,7 @@ RUN python3.7 -m pip install pip --upgrade RUN python3.7 -m pip install wheel RUN python3.7 -m venv /petastorm_venv3.7 RUN /petastorm_venv3.7/bin/pip3.7 install --no-cache scikit-build -RUN /petastorm_venv3.7/bin/pip3.7 install --no-cache -e /petastorm/[test,tf,torch,docs,opencv] +RUN /petastorm_venv3.7/bin/pip3.7 install --no-cache -e /petastorm/[test,tf,torch,docs,opencv] --only-binary pyarrow --only-binary opencv-python RUN /petastorm_venv3.7/bin/pip3.7 uninstall -y petastorm # Clean up