Dockerfile 1.65 KB
Newer Older
liuzhe-lz's avatar
liuzhe-lz committed
1
2
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
SparkSnail's avatar
SparkSnail committed
3

4
FROM nvidia/cuda:9.0-cudnn7-runtime-ubuntu16.04
5
6
7

LABEL maintainer='Microsoft NNI Team<nni@microsoft.com>'

SparkSnail's avatar
SparkSnail committed
8
9
10
11
12
13
14
15
16
RUN DEBIAN_FRONTEND=noninteractive && \
    apt-get -y update && \
    apt-get -y install sudo \
    apt-utils \
    git \
    curl \
    vim \
    unzip \
    wget \
17
    build-essential \
SparkSnail's avatar
SparkSnail committed
18
19
20
21
22
23
24
25
26
27
28
29
30
31
    cmake \
    libopenblas-dev \
    automake \
    openssh-client \
    openssh-server \
    lsof \
    python3.5 \
    python3-dev \
    python3-pip \
    python3-tk \
    libcupti-dev && \
    apt-get clean && \
    rm -rf /var/lib/apt/lists/*

SparkSnail's avatar
SparkSnail committed
32
33
34
35
36
#
# generate python script
#
RUN cp /usr/bin/python3 /usr/bin/python

Lee's avatar
Lee committed
37
38
39
#
# update pip
#
40
RUN python3 -m pip install --upgrade pip setuptools==39.1.0
Lee's avatar
Lee committed
41

42
# numpy 1.14.3  scipy 1.1.0
Gems Guo's avatar
Gems Guo committed
43
RUN python3 -m pip --no-cache-dir install \
44
    numpy==1.14.3 scipy==1.1.0
SparkSnail's avatar
SparkSnail committed
45

46
#
Lee's avatar
Lee committed
47
# Tensorflow 1.10.0
48
#
Gems Guo's avatar
Gems Guo committed
49
RUN python3 -m pip --no-cache-dir install tensorflow-gpu==1.10.0
50
51

#
Lee's avatar
Lee committed
52
# Keras 2.1.6
53
#
Gems Guo's avatar
Gems Guo committed
54
RUN python3 -m pip --no-cache-dir install Keras==2.1.6
fishyds's avatar
fishyds committed
55

56
#
57
# PyTorch
58
#
59
RUN python3 -m pip --no-cache-dir install torch==1.4.0
SparkSnail's avatar
SparkSnail committed
60
RUN python3 -m pip install torchvision==0.5.0
61
62

#
Lee's avatar
Lee committed
63
# sklearn 0.20.0
64
65
#
RUN python3 -m pip --no-cache-dir install scikit-learn==0.20.0
SparkSnail's avatar
SparkSnail committed
66

67
#
Lee's avatar
Lee committed
68
69
70
71
72
73
# pandas==0.23.4 lightgbm==2.2.2
#
RUN python3 -m pip --no-cache-dir install pandas==0.23.4 lightgbm==2.2.2

#
# Install NNI
74
75
76
#
RUN python3 -m pip --no-cache-dir install nni

SparkSnail's avatar
SparkSnail committed
77
78
79
80
81
82
83
#
# install aml package
#
RUN python3 -m pip --no-cache-dir install azureml
RUN python3 -m pip --no-cache-dir install azureml-sdk


chicm-ms's avatar
chicm-ms committed
84
ENV PATH=/usr/local/nvidia/bin:/usr/local/cuda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/root/.local/bin:/usr/bin:/bin:/sbin
SparkSnail's avatar
SparkSnail committed
85

gongwuji's avatar
gongwuji committed
86
WORKDIR /root