From 0c4e84bb61b30eb753effd5abdc2a293037b178a Mon Sep 17 00:00:00 2001 From: Yuge Zhang Date: Wed, 12 Aug 2020 20:32:17 +0800 Subject: [PATCH] Upgrade Dockerfile to Ubuntu 18.04 (#2783) * Upgrade dockerfile to ubuntu 18.04 * Upgrade to cuda 9.2 * Set frontend noninteractive * Upgrade tensorflow to 1.15.2 * Fix pip version --- deployment/docker/Dockerfile | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/deployment/docker/Dockerfile b/deployment/docker/Dockerfile index 493cdba17b..b5418ec783 100644 --- a/deployment/docker/Dockerfile +++ b/deployment/docker/Dockerfile @@ -1,12 +1,13 @@ # Copyright (c) Microsoft Corporation. # Licensed under the MIT license. -FROM nvidia/cuda:9.0-cudnn7-runtime-ubuntu16.04 +FROM nvidia/cuda:9.2-cudnn7-runtime-ubuntu18.04 LABEL maintainer='Microsoft NNI Team' -RUN DEBIAN_FRONTEND=noninteractive && \ - apt-get -y update && \ +ENV DEBIAN_FRONTEND=noninteractive + +RUN apt-get -y update && \ apt-get -y install sudo \ apt-utils \ git \ @@ -21,7 +22,7 @@ RUN DEBIAN_FRONTEND=noninteractive && \ openssh-client \ openssh-server \ lsof \ - python3.5 \ + python3.6 \ python3-dev \ python3-pip \ python3-tk \ @@ -37,7 +38,7 @@ RUN cp /usr/bin/python3 /usr/bin/python # # update pip # -RUN python3 -m pip install --upgrade pip setuptools==39.1.0 +RUN python3 -m pip install --upgrade pip==20.0.2 setuptools==39.1.0 # numpy 1.14.3 scipy 1.1.0 RUN python3 -m pip --no-cache-dir install \ @@ -46,7 +47,7 @@ RUN python3 -m pip --no-cache-dir install \ # # Tensorflow 1.15 # -RUN python3 -m pip --no-cache-dir install tensorflow-gpu==1.15 +RUN python3 -m pip --no-cache-dir install tensorflow-gpu==1.15.0 # # Keras 2.1.6