Skip to content
This repository has been archived by the owner on Mar 5, 2024. It is now read-only.

Commit

Permalink
⬆️ Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
tkoyama010 committed Jul 25, 2020
1 parent 38e0595 commit 8e1f584
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
Expand Up @@ -9,6 +9,7 @@ RUN git clone https://github.com/enthought/mayavi.git; \
pip3 install PyQt5;\
python3 setup.py install
# RUN apt-get -y install mayavi2
RUN libgl1-mesa-dev
RUN apt-get -y install xvfb

# install the notebook package
Expand All @@ -32,3 +33,13 @@ RUN pip3 install -r requirements.txt
RUN pip3 install .
RUN chown -R ${NB_USER} ${HOME}
USER ${USER}

RUN set -x
ENV DISPLAY :99.0
ENV PYVISTA_OFF_SCREEN true
ENV PYVISTA_USE_PANEL true
RUN which Xvfb
RUN Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
RUN sleep 3
RUN set +x
RUN exec "$@"

0 comments on commit 8e1f584

Please sign in to comment.