2016-08-02 17:03:28 -07:00
|
|
|
# The devel Docker image is designed for use with a source checkout
|
|
|
|
# mounted from the local host filesystem.
|
|
|
|
|
2016-08-01 16:44:11 -07:00
|
|
|
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
|
2016-08-29 22:16:14 -07:00
|
|
|
RUN pip install ipython funcsigs subprocess32 protobuf colorama graphviz cloudpickle
|
2016-08-01 16:44:11 -07:00
|
|
|
RUN adduser --gecos --ingroup ray-user --disabled-login --gecos ray-user --uid 500
|
|
|
|
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 mkdir /home/ray-user/ray-build
|
|
|
|
RUN mkdir /home/ray-user/ray
|
|
|
|
RUN ln -s /home/ray-user/ray-build /home/ray-user/ray/build
|
|
|
|
ENTRYPOINT bash
|