Dockerfile 1.45 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/*

Lee's avatar
Lee committed
32
33
34
#
# update pip
#
35
RUN python3 -m pip install --upgrade pip setuptools==39.1.0
Lee's avatar
Lee committed
36

37
# numpy 1.14.3  scipy 1.1.0
Gems Guo's avatar
Gems Guo committed
38
RUN python3 -m pip --no-cache-dir install \
39
    numpy==1.14.3 scipy==1.1.0
SparkSnail's avatar
SparkSnail committed
40

41
#
Lee's avatar
Lee committed
42
# Tensorflow 1.10.0
43
#
Gems Guo's avatar
Gems Guo committed
44
RUN python3 -m pip --no-cache-dir install tensorflow-gpu==1.10.0
45
46

#
Lee's avatar
Lee committed
47
# Keras 2.1.6
48
#
Gems Guo's avatar
Gems Guo committed
49
RUN python3 -m pip --no-cache-dir install Keras==2.1.6
fishyds's avatar
fishyds committed
50

51
#
52
# PyTorch
53
#
54
RUN python3 -m pip --no-cache-dir install torch==1.2.0
SparkSnail's avatar
SparkSnail committed
55
RUN python3 -m pip install torchvision==0.5.0
56
57

#
Lee's avatar
Lee committed
58
# sklearn 0.20.0
59
60
#
RUN python3 -m pip --no-cache-dir install scikit-learn==0.20.0
SparkSnail's avatar
SparkSnail committed
61

62
#
Lee's avatar
Lee committed
63
64
65
66
67
68
# 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
69
70
71
#
RUN python3 -m pip --no-cache-dir install nni

chicm-ms's avatar
chicm-ms committed
72
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
73

gongwuji's avatar
gongwuji committed
74
WORKDIR /root