-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
50 lines (43 loc) · 1.83 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
FROM ubuntu:latest
LABEL IMAGE ="pixelmed"
LABEL VERSION="1.0.0"
Run mkdir Data
RUN apt-get update
RUN apt install -y default-jre
RUN apt-get install -y unzip
RUN apt-get install nano
RUN apt-get install -y python3-pip
RUN apt-get install -y libtiff-tools
RUN apt-get install -y bc
RUN apt-get install -y openjdk-8-jdk
RUN apt-get install -y openjdk-8-jre
RUN apt-get install -y dicom3tools
RUN pip install tifffile
RUN pip install pydicom
RUN apt-get -y install git
RUN git clone https://github.com/ImagingDataCommons/idc-wsi-conversion.git
RUN apt install wget
RUN wget http://www.dclunie.com/pixelmed/software/20221004_current/pixelmed.jar
RUN wget http://www.dclunie.com/pixelmed/software/20221004_current/pixelmedjavadicom_dependencyrelease.20221004.tar.bz2
RUN wget https://github.com/maxfscher/DICOMwsiWorkflow/raw/main/execute.sh
RUN wget https://github.com/maxfscher/DICOMwsiWorkflow/raw/main/gdcsvstodcm.sh
RUN mkdir /idc-wsi-conversion/pixelmed
RUN mkdir /idc-wsi-conversion/jai_imageio
RUN mkdir /idc-wsi-conversion/javax.json-1.0.4
RUN mkdir /idc-wsi-conversion/opencsv-2.4
RUN mkdir Dependencies
RUN unzip pixelmed.jar -d /idc-wsi-conversion/pixelmed/
RUN unzip /idc-wsi-conversion/jai_imageio.jar -d /idc-wsi-conversion/jai_imageio
RUN unzip /idc-wsi-conversion/javax.json-1.0.4.jar -d /idc-wsi-conversion/javax.json-1.0.4
RUN unzip /idc-wsi-conversion/opencsv-2.4.jar -d /idc-wsi-conversion/opencsv-2.4/
RUN tar -xvjf pixelmedjavadicom_dependencyrelease.20221004.tar.bz2 -C /Dependencies/
RUN mv Dependencies/lib/ /idc-wsi-conversion
RUN rm -r Dependencies
RUN rm -r /idc-wsi-conversion/gdcsvstodcm.sh
RUN mkdir idc-wsi-conversion/Data
RUN mv gdcsvstodcm.sh /idc-wsi-conversion
RUN mv pixelmed.jar /idc-wsi-conversion
RUN chmod +x /idc-wsi-conversion/gdcsvstodcm.sh
RUN chmod +x execute.sh
ENTRYPOINT ["/bin/bash","execute.sh"]
CMD ["/bin/bash"]