diff options
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 0f556b7..0000000 --- a/Dockerfile +++ /dev/null | |||
@@ -1,38 +0,0 @@ | |||
1 | # LumberJack bot | ||
2 | # It is difficult to dockerize this bot | ||
3 | # I have no idea how to access host's screenshot | ||
4 | # inside a docker container | ||
5 | # Project's present status: | ||
6 | # It can access mouse move inside a container | ||
7 | # But due to it cannot access screenshot of the host | ||
8 | # it cannot make decisions yet | ||
9 | |||
10 | FROM ubuntu:latest | ||
11 | MAINTAINER clarkzjw <[email protected]> | ||
12 | |||
13 | RUN \ | ||
14 | sed -i 's/# \(.*multiverse$\)/\1/g' /etc/apt/sources.list && \ | ||
15 | apt-get update && \ | ||
16 | apt-get -y upgrade && \ | ||
17 | apt-get install -y firefox sudo xvfb scrot git build-essential python3 python3-dev python3-pip python3-tk | ||
18 | |||
19 | RUN export uid=1000 gid=1000 && \ | ||
20 | mkdir -p /home/developer && \ | ||
21 | echo "developer:x:${uid}:${gid}:Developer,,,:/home/developer:/bin/bash" >> /etc/passwd && \ | ||
22 | echo "developer:x:${uid}:" >> /etc/group && \ | ||
23 | echo "developer ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/developer && \ | ||
24 | chmod 0440 /etc/sudoers.d/developer && \ | ||
25 | chown ${uid}:${gid} -R /home/developer | ||
26 | |||
27 | RUN \ | ||
28 | Xvfb :1 -screen 0 1366x768x16 &> xvfb.log && \ | ||
29 | export DISPLAY=:1.0 && \ | ||
30 | touch /root/.Xauthority && \ | ||
31 | touch /home/developer/.Xauthority && \ | ||
32 | pip3 install image && \ | ||
33 | pip3 install python3-xlib && \ | ||
34 | pip3 install pyautogui | ||
35 | |||
36 | USER developer | ||
37 | ENV HOME /home/developer | ||
38 | CMD /bin/bash | ||