2020-09-02 13:03:35 -07:00
|
|
|
ARG GPU
|
2020-10-12 14:22:51 -07:00
|
|
|
FROM rayproject/ray:nightly"$GPU"
|
2020-09-02 13:03:35 -07:00
|
|
|
|
|
|
|
# We have to uninstall wrapt this way for Tensorflow compatibility
|
|
|
|
COPY requirements.txt ./
|
|
|
|
COPY requirements_ml_docker.txt ./
|
|
|
|
COPY requirements_rllib.txt ./
|
|
|
|
COPY requirements_tune.txt ./
|
|
|
|
|
2020-11-12 08:41:50 -08:00
|
|
|
RUN sudo apt-get update \
|
|
|
|
&& sudo apt-get install -y gcc \
|
2020-09-02 13:03:35 -07:00
|
|
|
cmake \
|
|
|
|
libgtk2.0-dev \
|
|
|
|
zlib1g-dev \
|
|
|
|
libgl1-mesa-dev \
|
|
|
|
&& $HOME/anaconda3/bin/pip --no-cache-dir install -r requirements.txt \
|
|
|
|
&& $HOME/anaconda3/bin/pip --no-cache-dir install -r requirements_ml_docker.txt \
|
2020-11-18 12:34:04 -08:00
|
|
|
&& $HOME/anaconda3/bin/pip uninstall dataclasses -y \
|
2020-11-12 08:41:50 -08:00
|
|
|
&& sudo rm requirements.txt && sudo rm requirements_ml_docker.txt \
|
|
|
|
&& sudo apt-get remove cmake gcc -y \
|
|
|
|
&& sudo apt-get clean
|
2020-09-02 13:03:35 -07:00
|
|
|
|