mirror of
https://github.com/vale981/ray
synced 2025-03-09 12:56:46 -04:00

* cleanup-base deps * only build base-deps a bit * remove parens * formatting * add ray-deps * gpu enabled * always include wheel * fix script * log new variables * run tests for docker * try to include env variables * source files * remove bash when sourcing * add new lines * use wget * dual build autoscaler * switch to gnupg * add gcc cmake * remove blist * clarify build-docker-images
21 lines
822 B
Docker
21 lines
822 B
Docker
ARG GPU
|
|
FROM rayproject/ray:latest"$GPU"
|
|
|
|
# Install kubectl.
|
|
RUN apt-get update \
|
|
&& apt-get install -y gnupg gcc cmake \
|
|
&& wget -O - -q https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - \
|
|
&& touch /etc/apt/sources.list.d/kubernetes.list \
|
|
&& echo "deb http://apt.kubernetes.io/ kubernetes-xenial main" | tee -a /etc/apt/sources.list.d/kubernetes.list \
|
|
&& apt-get update \
|
|
&& apt install -y kubectl \
|
|
&& apt-get clean
|
|
|
|
# We have to uninstall wrapt this way for Tensorflow compatibility
|
|
COPY requirements.txt ./
|
|
COPY requirements_autoscaler.txt ./
|
|
|
|
RUN $HOME/anaconda3/bin/pip --no-cache-dir install -r requirements.txt \
|
|
&& $HOME/anaconda3/bin/pip --no-cache-dir install -r requirements_autoscaler.txt \
|
|
&& rm requirements.txt && rm requirements_autoscaler.txt
|
|
|