Dockerfile 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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 && \
  21. wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb && \
  22. dpkg -i google-chrome-stable_current_amd64.deb; apt-get -fy install && \
  23. rm google-chrome-stable_current_amd64.deb && \
  24. apt-get autoclean -y && \
  25. apt-get autoremove -y && \
  26. apt-get clean && \
  27. rm -rf /var/lib/apt/lists/*
  28. # Install Baangt
  29. RUN git clone https://gogs.earthsquad.global/athos/baangt && \
  30. pip3 install -r baangt/requirements.txt
  31. WORKDIR /root/
  32. # VNC-Server
  33. RUN mkdir -p /root/.vnc
  34. COPY xstartup /root/.vnc/
  35. RUN chmod a+x /root/.vnc/xstartup
  36. RUN touch /root/.vnc/passwd && \
  37. /bin/bash -c "echo -e 'password\npassword\nn' | vncpasswd" > /root/.vnc/passwd && \
  38. chmod 400 /root/.vnc/passwd && \
  39. chmod go-rwx /root/.vnc && \
  40. touch /root/.Xauthority
  41. COPY start-vncserver.sh /root/
  42. COPY baangt.sh /root/
  43. COPY getdrivers.sh /root/
  44. RUN chmod a+x /root/start-vncserver.sh && \
  45. chmod a+x /root/baangt.sh && \
  46. chmod a+x /root/getdrivers.sh && \
  47. /root/getdrivers.sh && \
  48. echo "mycontainer" > /etc/hostname && \
  49. echo "127.0.0.1 localhost" > /etc/hosts && \
  50. echo "127.0.0.1 mycontainer" >> /etc/hosts
  51. EXPOSE 5901
  52. ENV USER root
  53. CMD [ "/root/start-vncserver.sh" ]