ray/docker/autoscaler/Dockerfile
Raman Narasimhan 21d5b49c56
[Docker] Slim down autoscaler image (#8683)
* Modifed dockerfiles for base-deps and autoscaler

* Reverted base-deps to use xenial instead of bionic, reverted addition of gnupg2

* Added --no-cache-dir to pip install

Co-authored-by: jenkins-x-bot <jenkins-x@googlegroups.com>
2020-06-01 13:56:08 -07:00

28 lines
885 B
Docker

FROM rayproject/base-deps
ARG WHEEL_PATH
ARG WHEEL_NAME
# Install kubectl.
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
# We have to uninstall wrapt this way for Tensorflow compatibility
COPY requirements.txt .
COPY $WHEEL_PATH $WHEEL_NAME
RUN pip --no-cache-dir install -r requirements.txt \
&& pip --no-cache-dir install $WHEEL_NAME[all]
# For Click
ENV LC_ALL=C.UTF-8
ENV LANG=C.UTF-8