From e0a044ffbe109f6a290fb84b443c659cfea2ed4c Mon Sep 17 00:00:00 2001 From: Siddharth Yadav Date: Thu, 14 Jun 2018 13:57:58 +0530 Subject: [PATCH] Create Dockerfile --- Dockerfile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..c7a6a25 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,20 @@ +# Build the image using +# GPU: nvidia-docker build -t textseg . +# Normal: docker build -t textseg . + +# How to run it +# (nvidia-)docker run -v $PWD:$PWD -p 80:80 -it textseg +# `-p 80:80` : will help in running the flask app +# `-v $PWD:$PWD`: mounts the current folder inside the container with the same path so that your config files work + + +FROM library/python:2 + +# MAINTAINER Siddharth Yadav "siddharth16268@iiitd.ac.in" + +RUN pip install http://download.pytorch.org/whl/cu80/torch-0.3.0-cp27-cp27mu-linux_x86_64.whl +RUN pip install cython numpy scipy gensim ipython jupyter tqdm pathlib2 segeval tensorboard_logger flask flask_wtf nltk pandas xlrd xlsxwriter termcolor + +EXPOSE 80 + +CMD ["/bin/bash"]