Files
ray/docker/autoscaler/Dockerfile
T
Barak Michener 68f3fec744 *: Centralize requirements.txt and unify dependency versions (#9759)
* python_test: fix cython_examples in doc/ and tests/

* update setup.py to parse the bazel version string better

* all: centralize all python deps into stackable requirements files in python/

* format

* Move cython test into the proper package

* Add cross-reference dependency comments for requirements and setup.py

* re-enable version pinning on CI, fix formatting

* fix up torchvision version

* fix case in shell
2020-07-30 11:22:56 -07:00

27 lines
889 B
Docker

FROM rayproject/base-deps
ARG WHEEL_PATH
ARG WHEEL_NAME
# Install kubectl.
RUN apt-get update \
&& apt-get install -y 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 ../../python/requirements.txt ./
COPY ../../python/requirements_autoscaler.txt ./
COPY $WHEEL_PATH $WHEEL_NAME
RUN pip --no-cache-dir install -r requirements.txt \
&& pip --no-cache-dir install -r requirements_autoscaler.txt \
&& pip --no-cache-dir install $WHEEL_NAME[all]
# For Click
ENV LC_ALL=C.UTF-8
ENV LANG=C.UTF-8