Skip to content
Snippets Groups Projects
Commit a08ca05d authored by Tim O'Donnell's avatar Tim O'Donnell
Browse files

Split python2 into separate Dockerfile to speed up build (docker hub build was timing out)

parent c440acb0
Branches
Tags
No related merge requests found
......@@ -37,16 +37,14 @@ WORKDIR /home/user
# Setup virtual envs and install convenience packages. Note: installing
# cherrypy as part of the mhcflurry installation weirdly fails on a unicode
# issue in python2, but installing it separately seems to work. We also install
# bokeh so that dask distributed will have an admin web interface.
# issue in python2, but installing it separately seems to work.
# We also install bokeh so that dask distributed will have an admin web interface.
RUN virtualenv venv-py3 --python=python3 && \
venv-py3/bin/pip install cherrypy bokeh distributed jupyter seaborn && \
virtualenv venv-py2 --python=python && \
venv-py2/bin/pip install cherrypy bokeh distributed jupyter seaborn
venv-py3/bin/pip install cherrypy bokeh distributed jupyter seaborn
# Install mhcflurry.
COPY . ./mhcflurry
RUN venv-py3/bin/pip install ./mhcflurry && venv-py2/bin/pip install ./mhcflurry
RUN venv-py3/bin/pip install ./mhcflurry
EXPOSE 8888
CMD venv-py3/bin/jupyter notebook --no-browser
FROM hammerlab/mhcflurry:latest
# Extend the main MHCflurry docker image to additionally have a Python2 virtual
# environment.
MAINTAINER Tim O'Donnell <timodonnell@gmail.com>
RUN virtualenv venv-py2 --python=python && \
venv-py2/bin/pip install cherrypy bokeh distributed jupyter seaborn ./mhcflurry
EXPOSE 8888
CMD venv-py2/bin/jupyter notebook --no-browser
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment