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

small fixes to Dockerfile

parent 2893567b
No related branches found
No related tags found
No related merge requests found
......@@ -5,23 +5,27 @@ MAINTAINER Tim O'Donnell <timodonnell@gmail.com>
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections && \
apt-get update && \
apt-get install --yes \
python3-dev python-dev \
python-virtualenv \
libblas-dev \
liblapack-dev \
gfortran \
libatlas-base-dev \
libatlas3gf-base \
libblas-dev \
libfreetype6-dev \
libhdf5-serial-dev \
liblapack-dev \
libpng12-dev \
libyaml-dev \
libzmq3-dev \
libfreetype6-dev \
libpng12-dev \
pkg-config && \
pkg-config \
python-virtualenv \
python3-dev \
python-dev && \
apt-get clean && \
useradd --create-home --home-dir /home/user --shell /bin/bash user
useradd --create-home --home-dir /home/user --shell /bin/bash -G sudo user && \
echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
# Set the locale (otherwise dask-distributed complains).
RUN locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
......@@ -31,11 +35,14 @@ ENV SHELL=/bin/bash
ENV USER=user
WORKDIR /home/user
# Setup virtual envs and install convenience packages.
# 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.
RUN virtualenv venv-py3 --python=python3 && \
venv-py3/bin/pip install distributed jupyter seaborn && \
venv-py3/bin/pip install cherrypy bokeh distributed jupyter seaborn && \
virtualenv venv-py2 --python=python && \
venv-py2/bin/pip install distributed jupyter seaborn
venv-py2/bin/pip install cherrypy bokeh distributed jupyter seaborn
# Install mhcflurry.
COPY . ./mhcflurry
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment