Dockerfile 459 Bytes
Newer Older
Kai Chen's avatar
Kai Chen committed
1
2
3
4
5
6
ARG PYTORCH="1.1.0"
ARG CUDA="10.0"
ARG CUDNN="7.5"

FROM pytorch/pytorch:${PYTORCH}-cuda${CUDA}-cudnn${CUDNN}-devel

Yan's avatar
Yan committed
7
8
9
RUN apt-get update && apt-get install -y libglib2.0-0 libsm6 libxrender-dev libxext6 \
 && apt-get clean \
 && rm -rf /var/lib/apt/lists/*
Kai Chen's avatar
Kai Chen committed
10
11

# Install mmdetection
Yan's avatar
Yan committed
12
RUN conda install cython -y && conda clean --all
Kai Chen's avatar
Kai Chen committed
13
14
RUN git clone https://github.com/open-mmlab/mmdetection.git /mmdetection
WORKDIR /mmdetection
Yan's avatar
Yan committed
15
RUN pip install --no-cache-dir -e .