-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.trixie
67 lines (56 loc) · 2.26 KB
/
Dockerfile.trixie
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
62
63
64
65
66
FROM debian:trixie
USER 0
ARG DEBIAN_FRONTEND=noninteractive
ENV LANG=en_US.UTF-8 \
LANGUAGE=en_US.UTF-8 \
LC_ALL=C.UTF-8 \
TERM=xterm
# Install supervisor, VNC, & X11 packages
RUN set -ex;
RUN apt-get update && apt-get dist-upgrade -y --no-install-recommends --no-install-suggests;
RUN apt-get update && apt-get install -y --no-install-recommends --no-install-suggests \
bash bash-completion \
novnc supervisor x11vnc oathtool tightvncpasswd \
tigervnc-common tigervnc-standalone-server tigervnc-scraping-server tigervnc-viewer \
remmina remmina-plugin-vnc remmina-plugin-rdp curl wget netcat-traditional \
procps net-tools telnet openssh-client dnsutils whois traceroute file mawk sed less \
bzip2 zip unzip unrar-free xz-utils xarchiver \
xfce4 xfce4-terminal xfce4-clipman xfce4-clipman-plugin dbus-x11 mousepad galculator \
fonts-arphic-uming ibus-gtk3 ibus-gtk ibus-table-quick-classic vim man-db tmux \
firefox-esr chromium git python3-pip sshpass flameshot gnupg
RUN groupadd -g 1001 novnc
RUN useradd -m -s /bin/bash -u 1001 -g 1001 novnc
RUN groupadd docker || true
RUN usermod -aG docker novnc || true
COPY ./app /app
COPY ./trixie/rootfs/home/novnc /app/rootfs/home/novnc
RUN find /app -type d -exec chmod 755 {} \;
RUN find /app -type f -exec chmod g-w {} \;
RUN tar -C /app/rootfs -cf - . | tar -C / -xf -
RUN mv /app/noVNC /noVNC
RUN chmod 700 /app
RUN fc-cache -f
RUN curl https://get.docker.com | sed -e 's,12,12|trixie,' | bash
RUN apt-get update && apt-get install -y --no-install-recommends --no-install-suggests code
RUN if [ "$(arch)" = "x86_64" ]; then \
apt-get install -y --no-install-recommends --no-install-suggests microsoft-edge-stable google-chrome-stable; \
fi
RUN rm -rf /var/lib/apt/lists /var/cache/apt/archives && apt-get clean
# re-run it to avoid /usr/local/bin/code removed while installing it
RUN tar -C /app/rootfs -cf - . | tar -C / -xf -
# Setup demo environment variables
ENV LANG=en_US.UTF-8 \
LANGUAGE=en_US.UTF-8 \
LC_ALL=C.UTF-8 \
TERM=xterm \
GTK_IM_MODULE=ibus \
XMODIFIERS=@im=ibus \
QT_IM_MODULE=ibus \
DISPLAY=:0.0 \
DISPLAY_WIDTH=3840 \
DISPLAY_HEIGHT=2560 \
NOVNC_PORT=6080 \
SSL_NOVNC_PORT=6901 \
VNC_PW=novnc
EXPOSE $NOVNC_PORT
ENTRYPOINT ["/app/entrypoint.sh"]