forked from ich777/docker-debian-buster
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
61 lines (54 loc) · 2.82 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
FROM ich777/novnc-baseimage
LABEL maintainer="[email protected]"
RUN export TZ=Europe/Rome && \
sed -i '/deb http:\/\/deb.debian.org\/debian buster main/c\deb http:\/\/deb.debian.org\/debian buster main non-free' /etc/apt/sources.list && \
apt-get update && \
ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && \
echo $TZ > /etc/timezone && \
DEBIAN_FRONTEND=noninteractive apt-get -y install --no-install-recommends man-db hdparm udev whiptail reportbug init vim-common iproute2 nano gdbm-l10n less iputils-ping netcat-traditional perl bzip2 gettext-base manpages file liblockfile-bin python3-reportbug libnss-systemd isc-dhcp-common systemd-sysv xz-utils perl-modules-5.28 debian-faq wamerican bsdmainutils systemd cpio logrotate traceroute dbus kmod isc-dhcp-client telnet krb5-locales lsof debconf-i18n cron ncurses-term iptables ifupdown procps rsyslog apt-utils netbase pciutils bash-completion vim-tiny groff-base apt-listchanges bind9-host doc-debian libpam-systemd openssh-client xfce4 xorg dbus-x11 sudo gvfs-backends gvfs-common gvfs-fuse gvfs firefox-esr at-spi2-core gpg-agent mousepad xarchiver sylpheed unzip gtk2-engines-pixbuf gnome-themes-standard lxtask xfce4-terminal p7zip unrar curl && \
apt-get remove xterm && \
cd /tmp && \
wget -O /tmp/theme.tar.gz https://gitlab.manjaro.org/artwork/themes/breath-gtk/-/archive/master/breath-gtk-master.tar.gz && \
tar -xvf /tmp/theme.tar.gz && \
mv /tmp/breath*/Breath-Dark /usr/share/themes/ && \
rm -R /tmp/breath* && \
rm /tmp/theme.tar.gz && \
wget -O /tmp/icons.zip https://github.com/daniruiz/flat-remix/archive/master.zip && \
unzip /tmp/icons.zip && \
mv /tmp/flat*/Flat-Remix-Green-Dark/ /usr/share/icons/ &&\
rm -R /tmp/flat* && \
rm /tmp/icons.zip && \
gtk-update-icon-cache -f -t /usr/share/icons/Flat-Remix-Green-Dark/ && \
cd /usr/share/locale && \
wget -O /usr/share/locale/translation.7z https://github.com/ich777/docker-debian-buster/raw/master/translation.7z && \
p7zip -d /usr/share/locale/translation.7z && \
chmod -R 755 /usr/share/locale/ && \
rm -rf /var/lib/apt/lists/* && \
sed -i '/ document.title =/c\ document.title = "DebianBuster - noVNC";' /usr/share/novnc/app/ui.js && \
mkdir /tmp/config && \
rm /usr/share/novnc/app/images/icons/*
ENV DATA_DIR=/debian
ENV FORCE_UPDATE=""
ENV CUSTOM_RES_W=1280
ENV CUSTOM_RES_H=720
ENV UMASK=000
ENV UID=99
ENV GID=100
ENV DATA_PERM=770
ENV USER="Debian"
ENV ROOT_PWD="Docker!"
ENV DEV=""
ENV USER_LOCALES="en_US.UTF-8 UTF-8"
RUN mkdir $DATA_DIR && \
useradd -d $DATA_DIR -s /bin/bash $USER && \
chown -R $USER $DATA_DIR && \
ulimit -n 2048
ADD /scripts/ /opt/scripts/
COPY /icons/* /usr/share/novnc/app/images/icons/
COPY /debian.png /usr/share/backgrounds/xfce/
COPY /config/* /tmp/config/
RUN chmod -R 770 /opt/scripts/
RUN chmod -R 770 /tmp/config/
EXPOSE 8080
#Server Start
ENTRYPOINT ["/opt/scripts/start.sh"]