Skip to content

Commit

Permalink
fix wheel install (#377)
Browse files Browse the repository at this point in the history
* fix wheel install

* add a note
  • Loading branch information
sakoush authored Nov 9, 2021
1 parent 64b714a commit f06f1b1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,10 @@ RUN useradd -u 1000 -s /bin/bash mlserver -d /opt/mlserver && \
chmod -R 776 /opt/mlserver

COPY --from=wheel-builder /opt/mlserver/dist ./dist
# note: if runtime is "all" we install mlserver-<version>-py3-none-any.whl
# we have to use this syntax to return the correct file: $(ls ./dist/mlserver-*.whl)
RUN pip install --upgrade pip wheel setuptools && \
pip install ./dist/mlserver-*.whl[all]; \
pip install $(ls ./dist/mlserver-*.whl)[all]; \
if [[ $RUNTIMES == "all" ]]; then \
pip install ./dist/mlserver_*.whl; \
else \
Expand Down

0 comments on commit f06f1b1

Please sign in to comment.