Fix docker build
This commit is contained in:
parent
0969c6ea74
commit
38bec55c60
|
@ -11,19 +11,20 @@ COPY . /opt/genienlp
|
|||
|
||||
# install basic tools and python3, install dependencies, and then cleanup
|
||||
# HACK: we need to download the wheel manually or docker will die
|
||||
RUN dnf -y install git gcc gcc-c++ \
|
||||
RUN dnf -y install git gcc gcc-c++ make cmake \
|
||||
python3 \
|
||||
python3-numpy \
|
||||
python3-scipy \
|
||||
python3-pip \
|
||||
python3-wheel \
|
||||
python3-devel \
|
||||
&& curl -sL https://files.pythonhosted.org/packages/24/19/4804aea17cd136f1705a5e98a00618cb8f6ccc375ad8bfa437408e09d058/torch-1.4.0-cp36-cp36m-manylinux1_x86_64.whl \
|
||||
-o torch-1.4.0-cp36-cp36m-manylinux1_x86_64.whl \
|
||||
&& pip3 install torch-1.4.0-cp36-cp36m-manylinux1_x86_64.whl \
|
||||
&& rm -fr torch-1.4.0-cp36-cp36m-manylinux1_x86_64.whl \
|
||||
&& curl -sL https://files.pythonhosted.org/packages/90/4f/acf48b3a18a8f9223c6616647f0a011a5713a985336088d7c76f3a211374/torch-1.7.1-cp36-cp36m-manylinux1_x86_64.whl \
|
||||
-o torch-1.7.1-cp36-cp36m-manylinux1_x86_64.whl \
|
||||
&& pip3 install torch-1.7.1-cp36-cp36m-manylinux1_x86_64.whl \
|
||||
&& rm -fr torch-1.7.1-cp36-cp36m-manylinux1_x86_64.whl \
|
||||
&& pip3 install -e /opt/genienlp \
|
||||
&& rm -fr /root/.cache \
|
||||
&& dnf -y remove gcc gcc-c++ \
|
||||
&& dnf -y remove gcc gcc-c++ make cmake \
|
||||
&& rm -fr /var/cache/dnf
|
||||
|
||||
# add user genienlp
|
||||
|
|
Loading…
Reference in New Issue