diff --git a/README.md b/README.md index e164474..32d3779 100644 --- a/README.md +++ b/README.md @@ -46,6 +46,21 @@ Ubuntu 18.04 On OSX and Windows it is required to build DicomToMesh yourself. +### Using via Docker + +There is a [docker file](docker/Dockerfile) ready for use. If you have docker installed you can use the generated image without installing anything locally. + +#### Usage + +```bash +# build image and tag it as `dicom2mesh` +docker build docker -t dicom2mesh +# use generated image to build an stl file +docker run -v `pwd`/my/dicom/files/:/data dicom2mesh -i /data -t 557 -o /data/mesh.stl +``` + +Your mesh will be created alongside your dicom images and named `mesh.stl` + # Building The software is written in modern C++ on top of the powerful VTK library and is using CMake as a build-system. diff --git a/docker/Dockerfile b/docker/Dockerfile new file mode 100644 index 0000000..6ed5390 --- /dev/null +++ b/docker/Dockerfile @@ -0,0 +1,9 @@ +from ubuntu:18.04 + +RUN apt update +RUN apt install -y software-properties-common +RUN add-apt-repository ppa:eidelen/d2m +RUN apt update +RUN apt install -y dicom2mesh + +ENTRYPOINT ["dicom2mesh"]