diff options
author | Jinwei Zhao <[email protected]> | 2016-11-15 19:15:29 +0800 |
---|---|---|
committer | Jinwei Zhao <[email protected]> | 2016-11-15 19:15:29 +0800 |
commit | 55a1dc3ba3171735dd7bc37c68ecc705df2f1a2d (patch) | |
tree | 91216f04ed5b6cfb20d93bf0724a02138138b361 | |
parent | 7b133ce790b60ddfad45be3b524cf251ab9ec3c5 (diff) | |
download | LumberJack-55a1dc3ba3171735dd7bc37c68ecc705df2f1a2d.tar.gz |
gui
-rw-r--r-- | Dockerfile | 16 |
1 files changed, 9 insertions, 7 deletions
@@ -9,12 +9,14 @@ RUN \ | |||
9 | apt-get install -y xvfb scrot git build-essential python3 python3-dev python3-pip python3-tk && \ | 9 | apt-get install -y xvfb scrot git build-essential python3 python3-dev python3-pip python3-tk && \ |
10 | rm -rf /var/lib/apt/lists/* | 10 | rm -rf /var/lib/apt/lists/* |
11 | 11 | ||
12 | RUN \ | 12 | RUN export uid=1000 gid=1000 && \ |
13 | DISPLAY=:1.0 && \ | 13 | mkdir -p /home/developer && \ |
14 | export DISPLAY && \ | 14 | echo "developer:x:${uid}:${gid}:Developer,,,:/home/developer:/bin/bash" >> /etc/passwd && \ |
15 | Xvfb :1 -screen 0 1366x768x16 &> xvfb.log &&\ | 15 | echo "developer:x:${uid}:" >> /etc/group && \ |
16 | pip3 install image && \ | 16 | echo "developer ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/developer && \ |
17 | pip3 install python3-xlib && \ | 17 | chmod 0440 /etc/sudoers.d/developer && \ |
18 | pip3 install pyautogui | 18 | chown ${uid}:${gid} -R /home/developer |
19 | 19 | ||
20 | USER developer | ||
21 | ENV HOME /home/developer | ||
20 | CMD /bin/bash | 22 | CMD /bin/bash |