diff --git a/3.6.8.fasttext/Dockerfile b/3.6.8.fasttext/Dockerfile new file mode 100644 index 0000000..f01b9b8 --- /dev/null +++ b/3.6.8.fasttext/Dockerfile @@ -0,0 +1,21 @@ +# Use an official centos7 image +FROM centos:7 + +MAINTAINER paridhi "paridhi.shukla@phenompeople.com" + +RUN yum update -y \ + && yum install -y https://centos7.iuscommunity.org/ius-release.rpm \ + && yum install -y python36u python36u-libs python36u-devel python36u-pip \ + && yum groupinstall -y 'development tools' \ + && yum install -y wget gcc libffi-devel python-devel openssl-devel libev-devel + +# setting proper alias for python3 and pip3 and setting basic packages +RUN ln -s /usr/bin/pip3.6 /bin/pip3 && ln -s /usr/bin/python3.6 /usr/bin/python3 \ + && pip3 install --upgrade pip && pip3 install spacy && pip3 install -U setuptools \ + && python3 -m spacy download en + +# downloading embedding file and saving to appropriate path +RUN wget https://dl.fbaipublicfiles.com/fasttext/vectors-english/wiki-news-300d-1M.vec.zip \ + && mkdir -p /opt/ext_data \ + && unzip wiki-news-300d-1M.vec.zip -d /opt/ext_data \ + && rm -f wiki-news-300d-1M.vec.zip diff --git a/3.6.8/Dockerfile b/3.6.8/Dockerfile new file mode 100644 index 0000000..df4ba30 --- /dev/null +++ b/3.6.8/Dockerfile @@ -0,0 +1,15 @@ +# Use an official centos7 image +FROM centos:7 + +MAINTAINER paridhi "paridhi.shukla@phenompeople.com" + +RUN yum update -y \ + && yum install -y https://centos7.iuscommunity.org/ius-release.rpm \ + && yum install -y python36u python36u-libs python36u-devel python36u-pip \ + && yum groupinstall -y 'development tools' \ + && yum install -y wget gcc libffi-devel python-devel openssl-devel libev-devel + +# setting proper alias for python3 and pip3 and setting basic packages +RUN ln -s /usr/bin/pip3.6 /bin/pip3 && ln -s /usr/bin/python3.6 /usr/bin/python3 \ + && pip3 install --upgrade pip && pip3 install spacy && pip3 install -U setuptools \ + && python3 -m spacy download en