2019-12-04 16:20:04 -08:00
|
|
|
FROM rayproject/base-deps
|
2019-11-27 17:05:36 -08:00
|
|
|
ARG WHEEL_PATH
|
|
|
|
ARG WHEEL_NAME
|
|
|
|
|
2020-01-06 17:30:51 -06:00
|
|
|
# Install kubectl.
|
2020-06-02 02:26:08 +05:30
|
|
|
RUN apt-get update \
|
|
|
|
&& apt-get install -y curl \
|
|
|
|
tmux \
|
|
|
|
screen \
|
|
|
|
rsync \
|
|
|
|
apt-transport-https \
|
|
|
|
&& 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
|
|
|
|
COPY requirements.txt .
|
|
|
|
COPY $WHEEL_PATH $WHEEL_NAME
|
2020-06-02 02:26:08 +05:30
|
|
|
|
|
|
|
RUN pip --no-cache-dir install -r requirements.txt \
|
|
|
|
&& pip --no-cache-dir install $WHEEL_NAME[all]
|
2019-11-27 17:05:36 -08:00
|
|
|
|
|
|
|
# For Click
|
|
|
|
ENV LC_ALL=C.UTF-8
|
|
|
|
ENV LANG=C.UTF-8
|