From a83038aeab124007dba98b34d0dec5f817b63392 Mon Sep 17 00:00:00 2001 From: Giovanni Campagna Date: Fri, 30 Apr 2021 11:25:42 -0700 Subject: [PATCH] Fix docker build We need the 2020 resolver to avoid broken versions --- dockerfiles/Dockerfile | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/dockerfiles/Dockerfile b/dockerfiles/Dockerfile index 92f8feb1..303e9d2f 100644 --- a/dockerfiles/Dockerfile +++ b/dockerfiles/Dockerfile @@ -19,13 +19,9 @@ RUN dnf -y install git gcc gcc-c++ make cmake && \ python38-devel \ python38-pip \ python38-wheel \ - && curl -sL https://files.pythonhosted.org/packages/1d/a9/f349273a0327fdf20a73188c9c3aa7dbce68f86fad422eadd366fd2ed7a0/torch-1.7.1-cp38-cp38-manylinux1_x86_64.whl \ - -o torch-1.7.1-cp38-cp38-manylinux1_x86_64.whl \ - && pip3 install torch-1.7.1-cp38-cp38-manylinux1_x86_64.whl \ - && rm -fr torch-1.7.1-cp38-cp38-manylinux1_x86_64.whl \ - && pip3 install kfserving \ - && pip3 install awscli \ - && pip3 install -e /opt/genienlp \ + && pip3 install --upgrade pip \ + && pip3 install --use-feature=2020-resolver awscli \ + && pip3 install --use-feature=2020-resolver -e /opt/genienlp \ && python3 -m spacy download en_core_web_sm \ && rm -fr /root/.cache \ && dnf -y remove gcc gcc-c++ make cmake \