Diff of /docker/Dockerfile [000000] .. [95f789]

Switch to unified view

a b/docker/Dockerfile
1
FROM pytorch/pytorch:1.1.0-cuda10.0-cudnn7.5-devel
2
3
RUN apt-get update && apt-get install -y \
4
    build-essential \
5
    libsm6 \
6
    libxext6 \
7
    libfontconfig1 \
8
    libxrender1 \
9
    libswscale-dev \
10
    libtbb2 \
11
    libtbb-dev \
12
    libjpeg-dev \
13
    libpng-dev \
14
    libtiff-dev \
15
    libjasper-dev \
16
    libavformat-dev \
17
    libpq-dev \
18
    libturbojpeg \
19
    software-properties-common \
20
    && apt-get clean \
21
    && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
22
23
RUN pip install catalyst
24
RUN pip install albumentations
25
RUN pip install cnn_finetune
26
RUN pip install timm
27
RUN pip install click
28
RUN pip install pandas
29
RUN pip install SimpleITK
30
RUN pip install segmentation-models-pytorch
31
RUN pip install wandb
32
RUN pip install pyarrow
33
RUN pip install lz4
34
RUN pip install pydicom
35
RUN pip install iterative-stratification
36
37
# Install mmdetection
38
RUN pip install Cython
39
RUN git clone https://github.com/open-mmlab/mmdetection.git /mmdetection
40
WORKDIR /mmdetection
41
RUN pip install --no-cache-dir -e .
42
43
WORKDIR /tmp/unique_for_apex
44
# uninstall Apex if present, twice to make absolutely sure :)
45
RUN pip uninstall -y apex || :
46
RUN pip uninstall -y apex || :
47
# SHA is something the user can touch to force recreation of this Docker layer,
48
# and therefore force cloning of the latest version of Apex
49
RUN SHA=ToUcHMe git clone https://github.com/NVIDIA/apex.git
50
WORKDIR /tmp/unique_for_apex/apex
51
RUN pip install -v --no-cache-dir --global-option="--cpp_ext" --global-option="--cuda_ext" .
52
WORKDIR /workspace