aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)