From 45b2d15738bae3abd5c5415a962d2d5fc83ad63e Mon Sep 17 00:00:00 2001
From: inso <insomniak.fr@gmail.com>
Date: Sat, 24 Feb 2018 17:49:07 +0000
Subject: [PATCH] Update Dockerfile

---
 Dockerfile | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/Dockerfile b/Dockerfile
index 8a722b9..b4fb38c 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -46,10 +46,17 @@ RUN git clone https://github.com/pyenv/pyenv.git /builder/.pyenv && \
     PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install --force 3.5.5 && \
     PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install --force 3.6.4
 
+USER root
+ADD xvfb.sh /etc/init.d/xvfb
+RUN chmod a+x /etc/init.d/xvfb
+ADD xvfb-run.sh /usr/bin/xvfb-run
+RUN chmod a+x /usr/bin/xvfb-run
+
+
 USER root
 RUN export XVFBARGS="-screen 0 1280x1024x24" && \
     export DISPLAY=:99.0  && \
-    sh -e /etc/init.d/xvfb start  && \
+    /usr/bin/xvfb-run && \
     sleep 3  && \
     curl -L https://download.qt.io/official_releases/qt/5.9/5.9.4/qt-opensource-linux-x64-5.9.4.run --output qt-opensource-linux-x64-5.9.4.run && \
     chmod +x qt-opensource-linux-x64-5.9.4.run && \
-- 
GitLab