Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create docker image for course requirements #2

Closed
wants to merge 14 commits into from
Next Next commit
first commit to add dockerfile
  • Loading branch information
ai2160 committed Jun 3, 2017
commit b382cd2d00ebc5d29cfa26203847b382f392efb6
32 changes: 32 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
FROM ubuntu:16.04

MAINTAINER Abhilash Itharaju <abhilash.i@gmail.com>

RUN apt-get update && \
apt-get install -y curl build-essential libpng12-dev libffi-dev && \
apt-get clean && \
rm -rf /var/tmp /tmp /var/lib/apt/lists/*

RUN curl -sSL -o installer.sh https://repo.continuum.io/archive/Anaconda3-4.3.1-Linux-x86_64.sh && \
bash /installer.sh -b -f && \
rm /installer.sh

ENV PATH "$PATH:/root/anaconda3/bin"

EXPOSE 8888 6006
VOLUME /notebooks
WORKDIR "/notebooks"

CMD ["jupyter", "notebook", "--port=8888", "--no-browser", "--ip=0.0.0.0"]

#ADD environment.yml /environment.yml
#RUN conda env update -f /environment.yml

# Install the spacy data (around 1GB of data)
RUN python -m spacy.en.download all
RUN python -m nltk.downloader all

ENV TINI_VERSION v0.14.0
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /usr/bin/tini
RUN chmod +x /usr/bin/tini
ENTRYPOINT ["/usr/bin/tini", "--"]