updated Docker files (#171)

* updated Docker files

* single Docker RUN for apt-get installs and cleanup

* stylistic cleanup
This commit is contained in:
Johann Schleier-Smith
2016-12-31 17:21:33 -08:00
committed by Robert Nishihara
parent 1616426ccf
commit 8bb87a4f6b
7 changed files with 33 additions and 82 deletions
+5 -18
View File
@@ -1,21 +1,8 @@
# The deploy Docker image build a self-contained Ray instance suitable
# for end users.
FROM ubuntu:xenial
RUN apt-get update
RUN apt-get -y install apt-utils
RUN apt-get -y install sudo
RUN apt-get install -y git cmake build-essential autoconf curl libtool python-dev python-numpy python-pip libboost-all-dev unzip graphviz
RUN pip install ipython funcsigs subprocess32 protobuf colorama graphviz
RUN pip install --upgrade git+git://github.com/cloudpipe/cloudpickle.git@0d225a4695f1f65ae1cbb2e0bbc145e10167cce4 # We use the latest version of cloudpickle because it can serialize named tuples.
RUN adduser --gecos --ingroup ray-user --disabled-login --gecos ray-user
RUN adduser ray-user sudo
RUN sed -i "s|%sudo\tALL=(ALL:ALL) ALL|%sudo\tALL=NOPASSWD: ALL|" /etc/sudoers
USER ray-user
WORKDIR /home/ray-user
RUN git clone https://github.com/ray-project/ray
WORKDIR /home/ray-user/ray
RUN ./setup.sh
RUN ./build.sh
RUN echo '\n# Ray environment\nsource /home/ray-user/ray/setup-env.sh' >> /home/ray-user/.bashrc
ENTRYPOINT bash
FROM ray-project/base-deps
ADD ray.tar /ray
WORKDIR /ray/lib/python
RUN python setup.py install
WORKDIR /ray