2020-08-03 16:37:15 -07:00
|
|
|
FROM rayproject/ray
|
2019-11-27 17:05:36 -08:00
|
|
|
|
2020-01-06 17:30:51 -06:00
|
|
|
# Install kubectl.
|
2020-06-02 02:26:08 +05:30
|
|
|
RUN apt-get update \
|
2020-07-05 17:31:59 -07:00
|
|
|
&& apt-get install -y apt-transport-https \
|
2020-06-02 02:26:08 +05:30
|
|
|
&& curl -s 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
|
2019-11-27 17:05:36 -08:00
|
|
|
|
|
|
|
# We have to uninstall wrapt this way for Tensorflow compatibility
|
2020-08-03 16:37:15 -07:00
|
|
|
COPY requirements.txt ./
|
|
|
|
COPY requirements_autoscaler.txt ./
|
2020-06-02 02:26:08 +05:30
|
|
|
|
2020-08-03 16:37:15 -07:00
|
|
|
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
|
2019-11-27 17:05:36 -08:00
|
|
|
|