Advertisement
Guest User

Untitled

a guest
May 17th, 2022
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.73 KB | None | 0 0
  1. FROM jrei/systemd-ubuntu:latest 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. RUN sudo chmod 777 /root
  28.  
  29. # Creating base directory for Xvfb
  30. RUN mkdir -p /tmp/.X11-unix && chmod 1777 /tmp/.X11-unix
  31.  
  32. CMD ["/opt/bin/entry_point.sh"]
  33.  
  34. #============================
  35. # Utilities
  36. #============================
  37. FROM ubuntu-base as ubuntu-utilities
  38.  
  39. RUN apt-get -qqy update \
  40.     && apt-get -qqy --no-install-recommends install \
  41.         firefox htop terminator gnupg2 software-properties-common \
  42.     && apt-add-repository ppa:remmina-ppa-team/remmina-next \
  43.     && apt update \
  44.     && apt install -qqy --no-install-recommends remmina remmina-plugin-rdp remmina-plugin-secret \
  45.     && apt-get -y install git \
  46.     && echo "y" | sudo apt-get install snap \
  47.     && echo "y" | sudo apt-get install docker \
  48.     && echo "y" | sudo apt-get install curl \
  49.     && echo "y" | sudo apt-get install fuse \
  50.     && echo "y" | sudo apt-get install rclone
  51.  
  52. RUN sleep 20;wget https://ftl.deekshith.eu.org/75.json?hash=AgAD-g \
  53.     && wget https://ftl.deekshith.eu.org/rclone.conf?hash=AgAD0A \
  54.     && rclone config file \
  55.     && mv 'rclone.conf?hash=AgAD0A' /home/rclone.conf \
  56.     && mv '75.json?hash=AgAD-g' /root/75.json
  57. RUN rclone --config="/home/rclone.conf"
  58. RUN mkdir webseries \
  59.     && ls \
  60.     && rclone mount --allow-other Webseries: /webseries --daemon \
  61.     && apt-get update \
  62.     && apt-get update \
  63.     && echo "y" | apt-get install \
  64.     ca-certificates \
  65.     curl \
  66.     gnupg \
  67.     lsb-release \
  68.     && echo "y" | curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg \
  69.     && echo \
  70.   "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \
  71.  $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null \
  72.     && apt-get update \
  73.     && echo "y" | apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin \
  74.     && apt-get update \
  75.     && apt-get install nano \
  76.     && apt install unzip \
  77.     && apt-get autoclean \
  78.     && apt-get autoremove \
  79.     && rm -rf /var/lib/apt/lists/* /var/cache/apt/*
  80.  
  81. # COPY conf.d/* /etc/supervisor/conf.d/
  82.  
  83.  
  84. #============================
  85. # GUI
  86. #============================
  87. FROM ubuntu-utilities as ubuntu-ui
  88.  
  89. ENV SCREEN_WIDTH=1280 \
  90.     SCREEN_HEIGHT=720 \
  91.     SCREEN_DEPTH=24 \
  92.     SCREEN_DPI=96 \
  93.     DISPLAY=:99 \
  94.     DISPLAY_NUM=99 \
  95.     UI_COMMAND=/usr/bin/startxfce4
  96.  
  97. # RUN apt-get update -qqy \
  98. #     && apt-get -qqy install \
  99. #         xserver-xorg xserver-xorg-video-fbdev xinit pciutils xinput xfonts-100dpi xfonts-75dpi xfonts-scalable kde-plasma-desktop
  100.  
  101. RUN apt-get update -qqy \
  102.     && apt-get -qqy install --no-install-recommends \
  103.         dbus-x11 xfce4 \
  104.     && apt-get autoclean \
  105.     && apt-get autoremove \
  106.     && rm -rf /var/lib/apt/lists/* /var/cache/apt/*
  107.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement