Dockerfile 1.73 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.2-cudnn7-runtime-ubuntu18.04
5

liuzhe-lz's avatar
liuzhe-lz committed
6
7
ARG NNI_RELEASE

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

10
11
ENV DEBIAN_FRONTEND=noninteractive 

liuzhe-lz's avatar
liuzhe-lz committed
12
13
14
RUN apt-get -y update
RUN apt-get -y install \
    sudo \
SparkSnail's avatar
SparkSnail committed
15
16
17
18
19
20
    apt-utils \
    git \
    curl \
    vim \
    unzip \
    wget \
21
    build-essential \
SparkSnail's avatar
SparkSnail committed
22
23
24
25
26
27
    cmake \
    libopenblas-dev \
    automake \
    openssh-client \
    openssh-server \
    lsof \
28
    python3.6 \
SparkSnail's avatar
SparkSnail committed
29
30
31
    python3-dev \
    python3-pip \
    python3-tk \
liuzhe-lz's avatar
liuzhe-lz committed
32
33
34
    libcupti-dev
RUN apt-get clean
RUN rm -rf /var/lib/apt/lists/*
SparkSnail's avatar
SparkSnail committed
35

SparkSnail's avatar
SparkSnail committed
36
37
38
#
# generate python script
#
liuzhe-lz's avatar
liuzhe-lz committed
39
RUN ln -s python3 /usr/bin/python
SparkSnail's avatar
SparkSnail committed
40

Lee's avatar
Lee committed
41
42
43
#
# update pip
#
liuzhe-lz's avatar
liuzhe-lz committed
44
RUN python3 -m pip install --upgrade pip==20.2.4 setuptools==50.3.2
Lee's avatar
Lee committed
45

46
# numpy 1.14.3  scipy 1.1.0
liuzhe-lz's avatar
liuzhe-lz committed
47
RUN python3 -m pip --no-cache-dir install numpy==1.14.3 scipy==1.1.0
SparkSnail's avatar
SparkSnail committed
48

49
#
liuzhe-lz's avatar
liuzhe-lz committed
50
# TensorFlow
51
#
liuzhe-lz's avatar
liuzhe-lz committed
52
RUN python3 -m pip --no-cache-dir install tensorflow==2.3.1
53
54

#
Lee's avatar
Lee committed
55
# Keras 2.1.6
56
#
Gems Guo's avatar
Gems Guo committed
57
RUN python3 -m pip --no-cache-dir install Keras==2.1.6
fishyds's avatar
fishyds committed
58

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

#
66
# sklearn 0.24.1
67
#
68
RUN python3 -m pip --no-cache-dir install scikit-learn==0.24.1
SparkSnail's avatar
SparkSnail committed
69

70
#
Lee's avatar
Lee committed
71
72
73
74
75
76
# 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
77
#
liuzhe-lz's avatar
liuzhe-lz committed
78
79
COPY dist/nni-${NNI_RELEASE}-py3-none-manylinux1_x86_64.whl .
RUN python3 -m pip install nni-${NNI_RELEASE}-py3-none-manylinux1_x86_64.whl
80

SparkSnail's avatar
SparkSnail committed
81
82
83
84
85
86
#
# 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
87
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
88

gongwuji's avatar
gongwuji committed
89
WORKDIR /root