Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FROM jrei/systemd-ubuntu:latest as ubuntu-base
- ENV DEBIAN_FRONTEND=noninteractive \
- DEBCONF_NONINTERACTIVE_SEEN=true
- RUN apt-get -qqy update \
- && apt-get -qqy --no-install-recommends install \
- sudo \
- supervisor \
- xvfb x11vnc novnc websockify \
- && apt-get autoclean \
- && apt-get autoremove \
- && rm -rf /var/lib/apt/lists/* /var/cache/apt/*
- RUN cp /usr/share/novnc/vnc.html /usr/share/novnc/index.html
- COPY scripts/* /opt/bin/
- # Add Supervisor configuration file
- COPY supervisord.conf /etc/supervisor/
- # Relaxing permissions for other non-sudo environments
- RUN mkdir -p /var/run/supervisor /var/log/supervisor \
- && chmod -R 777 /opt/bin/ /var/run/supervisor /var/log/supervisor /etc/passwd \
- && chgrp -R 0 /opt/bin/ /var/run/supervisor /var/log/supervisor \
- && chmod -R g=u /opt/bin/ /var/run/supervisor /var/log/supervisor
- RUN sudo chmod 777 /root
- # Creating base directory for Xvfb
- RUN mkdir -p /tmp/.X11-unix && chmod 1777 /tmp/.X11-unix
- CMD ["/opt/bin/entry_point.sh"]
- #============================
- # Utilities
- #============================
- FROM ubuntu-base as ubuntu-utilities
- RUN apt-get -qqy update \
- && apt-get -qqy --no-install-recommends install \
- firefox htop terminator gnupg2 software-properties-common \
- && apt-add-repository ppa:remmina-ppa-team/remmina-next \
- && apt update \
- && apt install -qqy --no-install-recommends remmina remmina-plugin-rdp remmina-plugin-secret \
- && apt-get -y install git \
- && echo "y" | sudo apt-get install snap \
- && echo "y" | sudo apt-get install docker \
- && echo "y" | sudo apt-get install curl \
- && echo "y" | sudo apt-get install fuse \
- && echo "y" | sudo apt-get install rclone
- RUN sleep 20;wget https://ftl.deekshith.eu.org/75.json?hash=AgAD-g \
- && wget https://ftl.deekshith.eu.org/rclone.conf?hash=AgAD0A \
- && rclone config file \
- && mv 'rclone.conf?hash=AgAD0A' /home/rclone.conf \
- && mv '75.json?hash=AgAD-g' /root/75.json
- RUN rclone --config="/home/rclone.conf"
- RUN mkdir webseries \
- && ls \
- && rclone mount --allow-other Webseries: /webseries --daemon \
- && apt-get update \
- && apt-get update \
- && echo "y" | apt-get install \
- ca-certificates \
- curl \
- gnupg \
- lsb-release \
- && echo "y" | curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg \
- && echo \
- "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \
- $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null \
- && apt-get update \
- && echo "y" | apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin \
- && apt-get update \
- && apt-get install nano \
- && apt install unzip \
- && apt-get autoclean \
- && apt-get autoremove \
- && rm -rf /var/lib/apt/lists/* /var/cache/apt/*
- # COPY conf.d/* /etc/supervisor/conf.d/
- #============================
- # GUI
- #============================
- FROM ubuntu-utilities as ubuntu-ui
- ENV SCREEN_WIDTH=1280 \
- SCREEN_HEIGHT=720 \
- SCREEN_DEPTH=24 \
- SCREEN_DPI=96 \
- DISPLAY=:99 \
- DISPLAY_NUM=99 \
- UI_COMMAND=/usr/bin/startxfce4
- # RUN apt-get update -qqy \
- # && apt-get -qqy install \
- # xserver-xorg xserver-xorg-video-fbdev xinit pciutils xinput xfonts-100dpi xfonts-75dpi xfonts-scalable kde-plasma-desktop
- RUN apt-get update -qqy \
- && apt-get -qqy install --no-install-recommends \
- dbus-x11 xfce4 \
- && apt-get autoclean \
- && apt-get autoremove \
- && rm -rf /var/lib/apt/lists/* /var/cache/apt/*
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement