Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions 3.6.8.fasttext/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
15 changes: 15 additions & 0 deletions 3.6.8/Dockerfile
Original file line number Diff line number Diff line change
@@ -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