[docker] Build docker in Travis PR & Fix image build failing (#9787)

Co-authored-by: Ian Rodney <ian.rodney@gmail.com>
This commit is contained in:
Simon Mo
2020-08-03 16:37:15 -07:00
committed by GitHub
co-authored by Ian Rodney
parent edcd94f26b
commit c218f2eff6
9 changed files with 101 additions and 66 deletions
+5 -4
View File
@@ -1,6 +1,8 @@
# The base-deps Docker image installs main libraries needed to run Ray
FROM ubuntu:focal
ENV TZ=America/Los_Angeles
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update -y && apt-get upgrade -y \
&& apt-get install -y \
git \
@@ -9,13 +11,11 @@ RUN apt-get update -y && apt-get upgrade -y \
build-essential \
curl \
unzip \
libgtk2.0-dev \
zlib1g-dev \
libgl1-mesa-dev \
tmux \
screen \
rsync \
openssh-client \
&& rm -rf /var/lib/apt/lists/* \
&& apt-get clean \
&& wget \
--quiet "https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh" \
@@ -35,4 +35,5 @@ RUN apt-get update -y && apt-get upgrade -y \
# AttributeError: 'numpy.ufunc' object has no attribute '__module__'
&& $HOME/anaconda3/bin/pip uninstall -y dask
ENV PATH "$HOME/anaconda3/bin:$PATH"
# TODO(ilr) $HOME seems to point to result in "" instead of "/root"
ENV PATH "/root/anaconda3/bin:$PATH"