Skip to content

Commit

Permalink
Create Dockerfile for vtk python + web lib using OSMesa
Browse files Browse the repository at this point in the history
  • Loading branch information
zachmullen committed Oct 25, 2017
1 parent d98776f commit 18855a1
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 18855a1

Please sign in to comment.