Skip to content

Commit

Permalink
Fixing Dockerfile (#661)
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
selitvin authored Mar 20, 2021
1 parent dd2fcbc commit 10e0fc8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ 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
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
Expand Down

0 comments on commit 10e0fc8

Please sign in to comment.