Advertisement
devansh9201

Untitled

Apr 30th, 2022
636
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.92 KB | None | 0 0
  1. FROM ubuntu:20.04 as ubuntu-base
  2.  
  3. ENV DEBIAN_FRONTEND=noninteractive \
  4. DEBCONF_NONINTERACTIVE_SEEN=true
  5.  
  6. RUN apt-get -qqy update \
  7. && apt-get -qqy --no-install-recommends install \
  8. sudo \
  9. supervisor \
  10. xvfb x11vnc novnc websockify \
  11. && apt-get autoclean \
  12. && apt-get autoremove \
  13. && rm -rf /var/lib/apt/lists/* /var/cache/apt/*
  14.  
  15. RUN cp /usr/share/novnc/vnc.html /usr/share/novnc/index.html
  16.  
  17. COPY scripts/* /opt/bin/
  18.  
  19. # Add Supervisor configuration file
  20. COPY supervisord.conf /etc/supervisor/
  21.  
  22. # Relaxing permissions for other non-sudo environments
  23. RUN mkdir -p /var/run/supervisor /var/log/supervisor \
  24. && chmod -R 777 /opt/bin/ /var/run/supervisor /var/log/supervisor /etc/passwd \
  25. && chgrp -R 0 /opt/bin/ /var/run/supervisor /var/log/supervisor \
  26. && chmod -R g=u /opt/bin/ /var/run/supervisor /var/log/supervisor
  27.  
  28. # Creating base directory for Xvfb
  29. RUN mkdir -p /tmp/.X11-unix && chmod 1777 /tmp/.X11-unix
  30.  
  31. CMD ["/opt/bin/entry_point.sh"]
  32.  
  33. #============================
  34. # Utilities
  35. #============================
  36. FROM ubuntu-base as ubuntu-utilities
  37. RUN apt-get update
  38. RUN apt-get install ffmpeg -y
  39. RUN apt-get -qqy update \
  40. && apt-get -qqy --no-install-recommends install \
  41. firefox htop terminator gnupg2 software-properties-common \
  42. && wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb \
  43. && wget https://github.com/MediaBrowser/Emby.Releases/releases/download/4.6.7.0/emby-server-deb_4.6.7.0_amd64.deb \
  44. && apt install -qqy --no-install-recommends ./google-chrome-stable_current_amd64.deb \
  45. && apt-add-repository ppa:remmina-ppa-team/remmina-next \
  46. && apt-get update \
  47. && apt install -qqy --no-install-recommends remmina remmina-plugin-rdp remmina-plugin-secret \
  48. && apt-add-repository ppa:obsproject/obs-studio \
  49. && add-apt-repository ppa:alessandro-strada/ppa \
  50. && apt-get install -y google-drive-ocamlfuse \
  51. && apt-get install -y rclone \
  52. && apt update \
  53. && apt install -qqy --no-install-recommends obs-studio \
  54. && apt install unzip \
  55. && apt-get autoclean \
  56. && apt-get autoremove \
  57. && rm -rf /var/lib/apt/lists/* /var/cache/apt/*
  58.  
  59. # COPY conf.d/* /etc/supervisor/conf.d/
  60.  
  61.  
  62. #============================
  63. # GUI
  64. #============================
  65. FROM ubuntu-utilities as ubuntu-ui
  66.  
  67. ENV SCREEN_WIDTH=1920 \
  68. SCREEN_HEIGHT=1080 \
  69. SCREEN_DEPTH=24 \
  70. SCREEN_DPI=96 \
  71. DISPLAY=:99 \
  72. DISPLAY_NUM=99 \
  73. UI_COMMAND=/usr/bin/startxfce4
  74.  
  75. #RUN apt-get update -qqy \
  76. # RUN apt-get -qqy install \
  77. #xserver-xorg xserver-xorg-video-fbdev xinit pciutils xinput xfonts-100dpi xfonts-75dpi xfonts-scalable kde-plasma-desktop
  78.  
  79.  
  80. RUN apt-get update -qqy \
  81. && apt-get -qqy install --no-install-recommends \
  82. dbus-x11 xfce4 \
  83. && apt-get autoclean \
  84. && apt-get autoremove \
  85. && rm -rf /var/lib/apt/lists/* /var/cache/apt/*
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement