Dockerfile 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. FROM ubuntu:18.04
  2. MAINTAINER Bernhard Buhl <buhl@buhl-consulting.com.cy>
  3. RUN echo "Europe/Rome" > /etc/timezone
  4. RUN apt-get update -q && \
  5. export DEBIAN_FRONTEND=noninteractive && \
  6. apt-get install -y --no-install-recommends tzdata
  7. RUN dpkg-reconfigure -f noninteractive tzdata
  8. # Install packages
  9. RUN apt-get update -q && \
  10. export DEBIAN_FRONTEND=noninteractive && \
  11. apt-get install -y --no-install-recommends software-properties-common && \
  12. add-apt-repository universe && \
  13. apt-get update -q && \
  14. apt-get remove -y python3.6 && \
  15. apt-get install -y --no-install-recommends wget curl rsync netcat mg vim bzip2 zip unzip && \
  16. apt-get install -y --no-install-recommends libx11-6 libxcb1 libxau6 jq python3-setuptools python3-tk && \
  17. apt-get install -y --no-install-recommends lxde tightvncserver xvfb dbus-x11 x11-utils && \
  18. apt-get install -y --no-install-recommends xfonts-base xfonts-75dpi xfonts-100dpi && \
  19. apt-get install -y --no-install-recommends python-pip python3.7-dev python-qt4 python3-pip tk-dev && \
  20. apt-get install -y --no-install-recommends libssl-dev git jq firefox unzip libxkbcommon-x11-0 && \
  21. apt-get install -y --no-install-recommends default-jre gcc && \
  22. apt-get install -y --no-install-recommends gnumeric nano && \
  23. wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb && \
  24. dpkg -i google-chrome-stable_current_amd64.deb; apt-get -fy install && \
  25. rm google-chrome-stable_current_amd64.deb && \
  26. apt-get autoclean -y && \
  27. apt-get autoremove -y && \
  28. apt-get clean && \
  29. rm -rf /var/lib/apt/lists/*
  30. # Install Baangt
  31. RUN git clone -b master https://gogs.earthsquad.global/athos/baangt --single-branch && \
  32. pip3 install --upgrade pip && \
  33. pip3 install -r baangt/requirements.txt && \
  34. rm -rf baangt/browserDrivers && \
  35. mkdir baangt/browserDrivers && \
  36. cd baangt/browserDrivers && \
  37. wget http://selenium-release.storage.googleapis.com/4.0-alpha5/selenium-server-4.0.0-alpha-5.jar && \
  38. cd ../..
  39. WORKDIR /root/
  40. # VNC-Server
  41. RUN mkdir -p /root/.vnc
  42. COPY xstartup /root/.vnc/
  43. RUN chmod a+x /root/.vnc/xstartup
  44. RUN touch /root/.vnc/passwd && \
  45. /bin/bash -c "echo -e 'password\npassword\nn' | vncpasswd" > /root/.vnc/passwd && \
  46. chmod 400 /root/.vnc/passwd && \
  47. chmod go-rwx /root/.vnc && \
  48. touch /root/.Xauthority
  49. COPY start-vncserver.sh /root/
  50. COPY baangt.sh /root/
  51. COPY baangt.ini /baangt/
  52. RUN chmod a+x /root/start-vncserver.sh && \
  53. chmod a+x /root/baangt.sh && \
  54. echo "mycontainer" > /etc/hostname && \
  55. echo "127.0.0.1 localhost" > /etc/hosts && \
  56. echo "127.0.0.1 mycontainer" >> /etc/hosts
  57. WORKDIR /baangt/
  58. RUN python3 baangt.py --reloadDrivers=True
  59. EXPOSE 5901
  60. ENV USER root
  61. CMD [ "/root/start-vncserver.sh" ]