From 18855a1da1896431102ef064d988aebea229c211 Mon Sep 17 00:00:00 2001 From: Zach Mullen Date: Wed, 25 Oct 2017 19:35:43 -0400 Subject: [PATCH] Create Dockerfile for vtk python + web lib using OSMesa --- Dockerfile | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..5760a80 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +FROM python:3.6 +MAINTAINER Zach Mullen + +RUN apt-get update && apt-get install -y libglapi-mesa libosmesa6 freeglut3-dev && \ + pip install cmake ninja scikit-build + +COPY . /VTKPythonPackage + +RUN cd VTKPythonPackage && \ + VTK_CMAKE_ARGS="-DVTK_Group_Web:BOOL=ON" python setup.py bdist_wheel +RUN pip install /VTKPythonPackage/dist/vtk-*.whl