aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJinwei Zhao <[email protected]>2016-11-15 19:15:29 +0800
committerJinwei Zhao <[email protected]>2016-11-15 19:15:29 +0800
commit55a1dc3ba3171735dd7bc37c68ecc705df2f1a2d (patch)
tree91216f04ed5b6cfb20d93bf0724a02138138b361
parent7b133ce790b60ddfad45be3b524cf251ab9ec3c5 (diff)
downloadLumberJack-55a1dc3ba3171735dd7bc37c68ecc705df2f1a2d.tar.gz
gui
-rw-r--r--Dockerfile16
1 files changed, 9 insertions, 7 deletions
diff --git a/Dockerfile b/Dockerfile
index eaaf87c..6ca427e 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -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
12RUN \ 12RUN 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
20USER developer
21ENV HOME /home/developer
20CMD /bin/bash 22CMD /bin/bash
Powered by cgit v1.2.3 (git 2.41.0)