-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
executable file
·43 lines (31 loc) · 1.26 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
FROM python:3.6
#RUN apt-get update
# RUN wget https://bootstrap.pypa.io/get-pip.py
# RUN python get-pip.py
RUN apt-get update && apt-get install -y unzip python-dev
RUN pip install pandas SPARQLWrapper rdflib
#RUN wget https://github.com/Radiomics/pyradiomics/archive/2.1.0.zip && \
# unzip 2.1.0.zip
RUN git clone https://github.com/Radiomics/pyradiomics.git
RUN cd /pyradiomics && \
python -m pip install -r requirements.txt && \
python setup.py install
RUN mkdir /o-raw
RUN mkdir /data
ADD ./RadiomicsOntology/ /o-raw/RadiomicsOntology
ADD ./ParamsSettings/ /o-raw/ParamsSettings
COPY ./DicomDatabase.py /o-raw/DicomDatabase.py
COPY ./ORAW_Docker.py /o-raw/ORAW_Docker.py
COPY ./ORAW_DockerScript.py /o-raw/ORAW_DockerScript.py
COPY ./PyrexOutput.py /o-raw/PyrexOutput.py
COPY ./PyrexReader.py /o-raw/PyrexReader.py
COPY ./PyrexWithParams.py /o-raw/PyrexWithParams.py
COPY ./PyrexXNAT.py /o-raw/PyrexXNAT.py
COPY ./Pyrex_requirements.txt /o-raw/Pyrex_requirements.txt
RUN mv /o-raw/ /pyradiomics/o-raw/ && \
cd /pyradiomics/o-raw/ && \
python -m pip install -r Pyrex_requirements.txt
RUN echo "cd /pyradiomics/o-raw" >> /run.sh
RUN echo "python ORAW_DockerScript.py" >> /run.sh
CMD ["sh", "/run.sh"]
#Run this in command line: docker build -t jvsoest/oraw ./