diff options
-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 |