2016-08-02 17:03:28 -07:00
|
|
|
# The deploy Docker image build a self-contained Ray instance suitable
|
|
|
|
# for end users.
|
|
|
|
|
2016-12-31 17:21:33 -08:00
|
|
|
FROM ray-project/base-deps
|
|
|
|
ADD ray.tar /ray
|
2017-02-28 18:57:51 -08:00
|
|
|
ADD git-rev /ray/git-rev
|
2020-07-17 11:39:38 -07:00
|
|
|
RUN cd /ray && git init && ./ci/travis/install-bazel.sh --system
|
2019-04-02 22:17:33 -07:00
|
|
|
ENV PATH=$PATH:/root/bin
|
2020-06-17 09:32:55 -07:00
|
|
|
RUN echo 'build --remote_cache="https://storage.googleapis.com/ray-bazel-cache"' >> $HOME/.bazelrc
|
|
|
|
RUN echo 'build --remote_upload_local_results=false' >> $HOME/.bazelrc
|
2020-06-03 12:16:03 -07:00
|
|
|
WORKDIR /ray/
|
|
|
|
# The result of bazel build is reused in pip install. It if run first to allow
|
|
|
|
# for failover to serial build if parallel build requires too much resources.
|
|
|
|
RUN bazel build //:ray_pkg || bazel build --jobs 1 //:ray_pkg
|
|
|
|
WORKDIR /ray/python/
|
2018-02-22 11:15:03 -08:00
|
|
|
RUN pip install -e .
|
2016-12-31 17:21:33 -08:00
|
|
|
WORKDIR /ray
|