-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
49 lines (40 loc) · 1.65 KB
/
Dockerfile
File metadata and controls
49 lines (40 loc) · 1.65 KB
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 continuumio/miniconda3
MAINTAINER vsochat@stanford.edu
# VERSION=$(cat VERSION)
# docker build -t pydicom/dicom:v${VERSION} .
ENV DCMTK_VERSION=dcmtk-3.6.5
ENV DCMTK_PREFIX=/opt/dcmtk365
ENV PATH=$PATH:${DCMTK_PREFIX}/bin:/opt/conda/bin
RUN mkdir /code
ADD run.sh /code
RUN apt-get update && apt-get install -y build-essential \
cmake \
dcm2niix \
pigz \
wget \
vim \
libpng-dev \
libtiff5-dev \
libxml2-dev \
libjpeg62-turbo-dev \
zlib1g-dev \
libwrap0-dev \
libssl-dev
RUN mkdir /data
# Install pydicom
WORKDIR /tmp
RUN git clone https://www.github.com/pydicom/pynetdicom3.git && \
git clone https://www.github.com/pydicom/pydicom.git && \
cd /tmp/pydicom && \
/opt/conda/bin/python setup.py install && \
cd /tmp/pynetdicom3 && \
/opt/conda/bin/python setup.py install && \
/opt/conda/bin/conda install -y ipython
# Releases are here http://dicom.offis.de/download/dcmtk/
RUN wget http://dicom.offis.de/download/dcmtk/release/${DCMTK_VERSION}.tar.gz && \
tar xzvf ${DCMTK_VERSION}.tar.gz && \
cd ${DCMTK_VERSION} && \
cmake -DCMAKE_INSTALL_PREFIX=${DCMTK_PREFIX} && \
make all && \
make install
CMD ["/bin/bash","/code/run.sh"]