Skip to content

Commit

Permalink
Merge pull request #5 from jcfr/Dockerfile
Browse files Browse the repository at this point in the history
Create Dockerfile for vtk python + web lib using OSMesa
  • Loading branch information
jcfr committed Oct 26, 2017
2 parents d98776f + 18855a1 commit 4a8ad37
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM python:3.6
MAINTAINER Zach Mullen <zach.mullen@kitware.com>

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

0 comments on commit 4a8ad37

Please sign in to comment.