Closed rbavery closed 4 years ago
I'm building an edited version of the tensorflow-py36-cuda90 dockerfile where I pip install some more packages
# ================================================================== # module list # ------------------------------------------------------------------ # python 3.6 (apt) # tensorflow latest (pip) # ================================================================== FROM nvidia/cuda:10.0-cudnn7-devel-ubuntu18.04 ENV LANG C.UTF-8 RUN APT_INSTALL="apt-get install -y --no-install-recommends" && \ PIP_INSTALL="python -m pip --no-cache-dir install --upgrade" && \ GIT_CLONE="git clone --depth 10" && \ rm -rf /var/lib/apt/lists/* \ /etc/apt/sources.list.d/cuda.list \ /etc/apt/sources.list.d/nvidia-ml.list && \ apt-get update && \ # ================================================================== # tools # ------------------------------------------------------------------ DEBIAN_FRONTEND=noninteractive $APT_INSTALL \ build-essential \ apt-utils \ ca-certificates \ wget \ git \ vim \ libssl-dev \ curl \ unzip \ unrar \ && \ $GIT_CLONE https://github.com/Kitware/CMake ~/cmake && \ cd ~/cmake && \ ./bootstrap && \ make -j"$(nproc)" install && \ # ================================================================== # python # ------------------------------------------------------------------ DEBIAN_FRONTEND=noninteractive $APT_INSTALL \ software-properties-common \ && \ add-apt-repository ppa:deadsnakes/ppa && \ apt-get update && \ DEBIAN_FRONTEND=noninteractive $APT_INSTALL \ python3.6 \ python3.6-dev \ python3-distutils-extra \ && \ wget -O ~/get-pip.py \ https://bootstrap.pypa.io/get-pip.py && \ python3.6 ~/get-pip.py && \ ln -s /usr/bin/python3.6 /usr/local/bin/python3 && \ ln -s /usr/bin/python3.6 /usr/local/bin/python && \ $PIP_INSTALL \ setuptools \ && \ $PIP_INSTALL \ numpy \ matplotlib \ pyqt \ seaborn \ xlrd \ scipy \ scikit-learn \ scikit-image \ xarray \ dask \ pandas \ cloudpickle \ Cython \ Pillow \ opencv \ IPython[all] \ rasterstats \ geopy \ cartopy \ geopandas \ rasterio \ contextily \ pysal \ pyproj \ folium \ gdal \ libgdal \ kealib \ geojson \ yaml \ "git+https://github.com/ecohydro/lsru@master#egg=lsru" \ imgaug \ rioxarray \ && \ # ================================================================== # tensorflow # ------------------------------------------------------------------ $PIP_INSTALL \ tf-nightly-gpu-2.0-preview \ && \ # ================================================================== # config & cleanup # ------------------------------------------------------------------ ldconfig && \ apt-get clean && \ apt-get autoremove && \ rm -rf /var/lib/apt/lists/* /tmp/* ~/* EXPOSE 6006
I get the following with both my modified dockerfile and the original docker file. Doesn't seem to affect the build but looks like it will in the future.
# rave at rave-thinkpad in ~/CropMask_RCNN on git:azureml-refactor ✖︎ [17:05:27] → docker build . -t tensorflow-py36-cu90:2 Sending build context to Docker daemon 219.8MB [WARNING]: Empty continuation line found in: RUN APT_INSTALL="apt-get install -y --no-install-recommends" && PIP_INSTALL="python -m pip --no-cache-dir install --upgrade" && GIT_CLONE="git clone --depth 10" && rm -rf /var/lib/apt/lists/* /etc/apt/sources.list.d/cuda.list /etc/apt/sources.list.d/nvidia-ml.list && apt-get update && DEBIAN_FRONTEND=noninteractive $APT_INSTALL build-essential apt-utils ca-certificates wget git vim libssl-dev curl unzip unrar && $GIT_CLONE https://github.com/Kitware/CMake ~/cmake && cd ~/cmake && ./bootstrap && make -j"$(nproc)" install && DEBIAN_FRONTEND=noninteractive $APT_INSTALL software-properties-common && add-apt-repository ppa:deadsnakes/ppa && apt-get update && DEBIAN_FRONTEND=noninteractive $APT_INSTALL python3.6 python3.6-dev python3-distutils-extra && wget -O ~/get-pip.py https://bootstrap.pypa.io/get-pip.py && python3.6 ~/get-pip.py && ln -s /usr/bin/python3.6 /usr/local/bin/python3 && ln -s /usr/bin/python3.6 /usr/local/bin/python && $PIP_INSTALL setuptools && $PIP_INSTALL numpy matplotlib pyqt seaborn xlrd scipy scikit-learn scikit-image xarray dask pandas cloudpickle Cython Pillow opencv IPython[all] rasterstats geopy cartopy geopandas rasterio contextily pysal pyproj folium gdal libgdal kealib geojson yaml "git+https://github.com/ecohydro/lsru@master#egg=lsru" imgaug rioxarray && $PIP_INSTALL tf-nightly-gpu-2.0-preview && ldconfig && apt-get clean && apt-get autoremove && rm -rf /var/lib/apt/lists/* /tmp/* ~/* [WARNING]: Empty continuation lines will become errors in a future release.
I'm building an edited version of the tensorflow-py36-cuda90 dockerfile where I pip install some more packages
I get the following with both my modified dockerfile and the original docker file. Doesn't seem to affect the build but looks like it will in the future.