From a684879f6bf19af2fd99bb18e053bc09e7c78b02 Mon Sep 17 00:00:00 2001 From: Jinwei Zhao Date: Tue, 15 Nov 2016 19:05:52 +0800 Subject: gui --- Dockerfile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 42f5743..fc0754f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,15 +6,15 @@ RUN \ sed -i 's/# \(.*multiverse$\)/\1/g' /etc/apt/sources.list && \ apt-get update && \ apt-get -y upgrade && \ - apt-get install -y scrot git build-essential python3 python3-dev python3-pip python3-tk && \ + apt-get install -y xvfb scrot git build-essential python3 python3-dev python3-pip python3-tk && \ rm -rf /var/lib/apt/lists/* RUN \ + DISPLAY=:1.0 && \ + export DISPLAY && \ + Xvfb :1 -screen 0 1366x768x16 &> xvfb.log & &&\ + pip3 install image && \ pip3 install python3-xlib && \ - pip3 install pyautogui && \ - mkdir -p /code/ - -# RUN -ADD ./bot.py /code/bot.py + pip3 install pyautogui CMD /bin/bash -- cgit v1.2.3