/
Dockerfile
55 lines (44 loc) · 1.66 KB
/
Dockerfile
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
50
51
52
53
54
55
# Dockerfile for https://index.docker.io/u/welcheb/dicom_tools/
FROM ubuntu:14.04
MAINTAINER E. Brian Welch <brian.welch@vanderbilt.edu>
RUN apt-get -y update && apt-get install -y \
wget \
unzip \
build-essential \
xutils-dev \
default-jre
# dicom3tools
# http://www.dclunie.com/dicom3tools
RUN wget http://www.dclunie.com/dicom3tools/workinprogress/dicom3tools_1.00.snapshot.20160721064406.tar.bz2
RUN tar xvjf dicom3tools_1.00.snapshot.20160721064406.tar.bz2
WORKDIR "/dicom3tools_1.00.snapshot.20160721064406"
RUN ./Configure
RUN imake -I./config
RUN make World
RUN make install
RUN make clean
# DCMTK (Offis DICOM Toolkit)
# http://dcmtk.org/dcmtk.php.en
RUN apt-get install -y dcmtk
# change to top level directory
WORKDIR "/"
# dcm4che2
# https://sourceforge.net/projects/dcm4che/files/dcm4che2/
RUN wget -O dcm4che-2.0.29-bin.zip http://downloads.sourceforge.net/project/dcm4che/dcm4che2/2.0.29/dcm4che-2.0.29-bin.zip
RUN unzip dcm4che-2.0.29-bin.zip
# dcm4che3
# https://sourceforge.net/projects/dcm4che/files/dcm4che3/
RUN wget -O dcm4che-3.3.7-bin.zip http://downloads.sourceforge.net/project/dcm4che/dcm4che3/3.3.7/dcm4che-3.3.7-bin.zip
RUN unzip dcm4che-3.3.7-bin.zip
# scratch directory for volume mount
RUN mkdir /scratch && echo "This is the dicom_tools scratch folder" > /scratch/scratch.txt
WORKDIR "/scratch"
# cleanup
RUN apt-get purge -y build-essential xutils-dev
RUN apt-get clean autoclean
RUN apt-get autoremove -y
RUN rm -rf /var/lib/{apt,dpkg,cache,log}/ /tmp/* /var/tmp/*
# take care of path
ENV PATH /dcm4che-3.3.7/bin:/dcm4che-2.0.29/bin:$PATH
# array form of entrypoint to support additional argument from docker run command
ENTRYPOINT ["/bin/bash"]