mirror of
https://github.com/vale981/ray
synced 2025-03-06 10:31:39 -05:00
18 lines
767 B
Text
18 lines
767 B
Text
![]() |
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 typing funcsigs subprocess32 protobuf==3.0.0a2 colorama graphviz cloudpickle
|
||
|
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/amplab/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
|