summaryrefslogtreecommitdiffstats
path: root/biomedisa/Dockerfile
blob: 6666be70a47b4a152ed825c3322c6fbe340e4e13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#FROM nvidia/cuda:10.0-cudnn7-devel-ubuntu18.04
FROM nvidia/cuda:9.0-cudnn7-devel-ubuntu16.04
MAINTAINER Suren A. Chilingaryan <csa@suren.me>

# Install Devel & Python
RUN apt-get update -qq \
 && apt-get install --no-install-recommends -y \
    git pkg-config netcat supervisor \
    telnet iputils-ping dnsutils \
    python python-dev python-pip python-setuptools python-virtualenv python-wheel python-numpy python-scipy python-h5py python-yaml python-pydot python-matplotlib libopenblas-base

# Install Keras + Tensor Flow
ARG TENSORFLOW_VERSION=1.12.0
ARG TENSORFLOW_DEVICE=gpu
ARG TENSORFLOW_APPEND=_gpu

ARG KERAS_VERSION=2.2.4
ENV KERAS_BACKEND=tensorflow

RUN pip --no-cache-dir install \
    https://storage.googleapis.com/tensorflow/linux/${TENSORFLOW_DEVICE}/tensorflow${TENSORFLOW_APPEND}-${TENSORFLOW_VERSION}-cp27-none-linux_x86_64.whl

RUN pip --no-cache-dir install --no-dependencies \
    git+https://github.com/fchollet/keras.git@${KERAS_VERSION}

ADD tests/ /root/tests

# install dependencies from debian packages
RUN apt-get install --no-install-recommends -y \
    mc \
    libsm6 libxrender-dev \
    openmpi-bin openmpi-doc libopenmpi-dev \
    python-gdcm python-mysqldb

# upgrade pip
RUN pip --no-cache-dir install --upgrade pip

# install dependencies from python packages
RUN pip --no-cache-dir install \
    setuptools==39.1.0 numpy==1.14.5 tifffile==0.14.0 SimpleParse==2.1.1 redis==2.10.6 rq==0.12 \
    scipy weave scikit-image opencv-python h5py pydicom Pillow django mpi4py pycuda

COPY supervisor/*.conf /etc/
COPY *-entrypoint.sh /
COPY run-*.sh /
ENTRYPOINT ["/docker-entrypoint.sh"]

ENV BIOMEDISA_DEVICE=${TENSORFLOW_DEVICE}
CMD /usr/bin/supervisord -c /etc/supervisord-${BIOMEDISA_DEVICE}.conf