Dockerfile 1.48 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

liuzhe-lz's avatar
liuzhe-lz committed
4
FROM nvidia/cuda:11.3.1-cudnn8-runtime-ubuntu20.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
RUN apt-get -y update
RUN apt-get -y install \
liuzhe-lz's avatar
liuzhe-lz committed
14
    automake \
15
    build-essential \
SparkSnail's avatar
SparkSnail committed
16
    cmake \
liuzhe-lz's avatar
liuzhe-lz committed
17
18
    curl \
    git \
SparkSnail's avatar
SparkSnail committed
19
    openssh-server \
liuzhe-lz's avatar
liuzhe-lz committed
20
    python3 \
SparkSnail's avatar
SparkSnail committed
21
22
    python3-dev \
    python3-pip \
liuzhe-lz's avatar
liuzhe-lz committed
23
24
25
26
    sudo \
    unzip \
    wget \
    zip
liuzhe-lz's avatar
liuzhe-lz committed
27
28
RUN apt-get clean
RUN rm -rf /var/lib/apt/lists/*
SparkSnail's avatar
SparkSnail committed
29

liuzhe-lz's avatar
liuzhe-lz committed
30
RUN ln -s python3 /usr/bin/python
SparkSnail's avatar
SparkSnail committed
31

liuzhe-lz's avatar
liuzhe-lz committed
32
RUN python3 -m pip --no-cache-dir install pip==22.0.3 setuptools==60.9.1 wheel==0.37.1
Lee's avatar
Lee committed
33

liuzhe-lz's avatar
liuzhe-lz committed
34
35
36
37
38
39
RUN python3 -m pip --no-cache-dir install \
    lightgbm==3.3.2 \
    numpy==1.22.2 \
    pandas==1.4.1 \
    scikit-learn==1.0.2 \
    scipy==1.8.0
SparkSnail's avatar
SparkSnail committed
40

liuzhe-lz's avatar
liuzhe-lz committed
41
42
43
44
45
46
RUN python3 -m pip --no-cache-dir install \
    torch==1.10.2+cu113 \
    torchvision==0.11.3+cu113 \
    torchaudio==0.10.2+cu113 \
    -f https://download.pytorch.org/whl/cu113/torch_stable.html
RUN python3 -m pip --no-cache-dir install pytorch-lightning==1.5.10
47

liuzhe-lz's avatar
liuzhe-lz committed
48
RUN python3 -m pip --no-cache-dir install tensorflow==2.8.0
fishyds's avatar
fishyds committed
49

liuzhe-lz's avatar
liuzhe-lz committed
50
RUN python3 -m pip --no-cache-dir install azureml==0.2.7 azureml-sdk==1.38.0
51

liuzhe-lz's avatar
liuzhe-lz committed
52
53
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
liuzhe-lz's avatar
liuzhe-lz committed
54
RUN rm nni-${NNI_RELEASE}-py3-none-manylinux1_x86_64.whl
55

liuzhe-lz's avatar
liuzhe-lz committed
56
ENV PATH=/root/.local/bin:/usr/local/nvidia/bin:/usr/local/cuda/bin:/usr/local/bin:/usr/bin:/usr/sbin
SparkSnail's avatar
SparkSnail committed
57

gongwuji's avatar
gongwuji committed
58
WORKDIR /root