-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
27 lines (22 loc) · 960 Bytes
/
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
FROM ubuntu:22.04
RUN apt-get update -qq && apt-get install -yq build-essential \
cmake git wget libjpeg-dev linuxdoc-tools libxml2-dev zlib1g-dev libxslt1-dev
# build gdcm and the executable
# test with 3.0.20 instead of 3.0.5
RUN cd /root && git clone https://github.com/mmiv-center/DICOMAnonymizer.git && cd DICOMAnonymizer \
&& wget https://github.com/malaterre/GDCM/archive/v3.0.20.tar.gz \
&& tar xzvf v3.0.20.tar.gz \
&& mkdir gdcm-build \
&& cd gdcm-build \
&& cmake -DGDCM_BUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=Release ../GDCM-3.0.20 \
&& make \
&& cd .. \
&& cmake -DCMAKE_BUILD_TYPE=Release . \
&& make
ENV ND_ENTRYPOINT="/startup.sh"
RUN echo '#!/usr/bin/env bash' >> $ND_ENTRYPOINT \
&& echo 'set +x' >> $ND_ENTRYPOINT \
&& echo 'umask 0000' >> $ND_ENTRYPOINT \
&& echo '/root/DICOMAnonymizer/anonymize $*' >> $ND_ENTRYPOINT \
&& chmod 777 $ND_ENTRYPOINT
ENTRYPOINT [ "/startup.sh" ]