moustuofa commited on
Commit
116724d
Β·
verified Β·
1 Parent(s): dac6091

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +24 -33
Dockerfile CHANGED
@@ -1,15 +1,15 @@
1
  # 1. Base Image: WebTop (Ubuntu XFCE)
2
- # This is the exact base from your fastest build.
3
  FROM lscr.io/linuxserver/webtop:ubuntu-xfce
4
 
5
- # Switch to root
6
  USER root
7
 
8
  # ==========================================
9
- # ⚑ NETWORK BRIDGE (The Hugging Face Fix)
10
  # ==========================================
11
  RUN apt-get update && \
12
- apt-get install -y socat wget curl rclone zenity && \
13
  rm -rf /var/lib/apt/lists/*
14
 
15
  RUN mkdir -p /etc/services.d/forwarder && \
@@ -18,53 +18,44 @@ RUN mkdir -p /etc/services.d/forwarder && \
18
  chmod +x /etc/services.d/forwarder/run
19
 
20
  # ==========================================
21
- # πŸ“¦ APPS: CHROME ONLY (Fastest)
22
  # ==========================================
23
- # We removed Telegram, VLC, and Transmission to keep it ultra-light.
24
  RUN apt-get update && \
25
  apt-get install -y \
26
  chromium-browser \
 
 
 
27
  numix-gtk-theme \
28
- && apt-get purge -y firefox \
29
  && rm -rf /var/lib/apt/lists/*
30
 
31
  # ==========================================
32
- # πŸ’Ύ INSTANT BACKUP (Save/Restore Buttons)
33
- # ==========================================
34
- # 1. Save Script
35
- RUN echo '#!/bin/bash' > /usr/local/bin/save-my-cinema && \
36
- echo 'rclone sync /config/remote-fs/Home remote:cinema-backup --progress --exclude ".cache/**"' >> /usr/local/bin/save-my-cinema && \
37
- echo 'zenity --info --text="βœ… Settings Saved to Cloud!"' >> /usr/local/bin/save-my-cinema && \
38
- chmod +x /usr/local/bin/save-my-cinema
39
-
40
- # 2. Restore Script
41
- RUN echo '#!/bin/bash' > /usr/local/bin/restore-my-cinema && \
42
- echo 'rclone sync remote:cinema-backup /config/remote-fs/Home --progress' >> /usr/local/bin/restore-my-cinema && \
43
- echo 'zenity --info --text="βœ… Settings Restored! Please refresh."' >> /usr/local/bin/restore-my-cinema && \
44
- chmod +x /usr/local/bin/restore-my-cinema
45
-
46
- # 3. Desktop Shortcuts
47
- RUN mkdir -p /defaults/Desktop && \
48
- echo '[Desktop Entry]\nVersion=1.0\nName=☁️ SAVE SETTINGS\nExec=/usr/local/bin/save-my-cinema\nIcon=document-save\nType=Application\nCategories=Utility;' > /defaults/Desktop/save.desktop && \
49
- echo '[Desktop Entry]\nVersion=1.0\nName=♻️ RESTORE SETTINGS\nExec=/usr/local/bin/restore-my-cinema\nIcon=system-software-update\nType=Application\nCategories=Utility;' > /defaults/Desktop/restore.desktop && \
50
- chmod +x /defaults/Desktop/*.desktop
51
-
52
- # ==========================================
53
- # πŸš€ SUPERCHARGE SETTINGS (Your Exact Fast Config)
54
  # ==========================================
 
55
  ENV CUSTOM_RES_W=960
56
  ENV CUSTOM_RES_H=540
57
  ENV KASM_SVC_FRAMERATE=18
58
  ENV KASM_SVC_AUDIO_BITRATE=32000
 
 
59
  RUN xfconf-query -c xfwm4 -p /general/use_compositing -s false || true
60
 
61
  # ==========================================
62
- # 🎨 BRANDING (Your Exact Colors)
63
  # ==========================================
64
  ENV TITLE="MADEINLOVE"
65
- # Note: Using your blue/green wallpaper link
66
- RUN wget -O /usr/share/images/desktop-base/default "https://images.unsplash.com/photo-1557683316-973673baf926?q=80&w=1280&auto=format&fit=crop" || true
67
- RUN wget -O /usr/share/kasmvnc/www/favicon.ico "https://cdn-icons-png.flaticon.com/128/2342/2342441.png" || true
 
 
 
 
 
 
 
68
 
69
  # ==========================================
70
  # πŸ‘€ CREDENTIALS
 
1
  # 1. Base Image: WebTop (Ubuntu XFCE)
2
+ # Verified Stable Version
3
  FROM lscr.io/linuxserver/webtop:ubuntu-xfce
4
 
5
+ # Switch to root to install your apps
6
  USER root
7
 
8
  # ==========================================
9
+ # ⚑ NETWORK BRIDGE (Hugging Face Fix)
10
  # ==========================================
11
  RUN apt-get update && \
12
+ apt-get install -y socat wget && \
13
  rm -rf /var/lib/apt/lists/*
14
 
15
  RUN mkdir -p /etc/services.d/forwarder && \
 
18
  chmod +x /etc/services.d/forwarder/run
19
 
20
  # ==========================================
21
+ # πŸ“¦ PERMANENT PROGRAMS
22
  # ==========================================
23
+ # This installs the suite you verified works perfectly.
24
  RUN apt-get update && \
25
  apt-get install -y \
26
  chromium-browser \
27
+ telegram-desktop \
28
+ vlc \
29
+ transmission-gtk \
30
  numix-gtk-theme \
 
31
  && rm -rf /var/lib/apt/lists/*
32
 
33
  # ==========================================
34
+ # πŸš€ SUPERCHARGE SETTINGS (600kbps)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
35
  # ==========================================
36
+ # These are the exact "Fast" settings you liked.
37
  ENV CUSTOM_RES_W=960
38
  ENV CUSTOM_RES_H=540
39
  ENV KASM_SVC_FRAMERATE=18
40
  ENV KASM_SVC_AUDIO_BITRATE=32000
41
+
42
+ # Disable Compositor for speed
43
  RUN xfconf-query -c xfwm4 -p /general/use_compositing -s false || true
44
 
45
  # ==========================================
46
+ # 🎨 BRANDING
47
  # ==========================================
48
  ENV TITLE="MADEINLOVE"
49
+
50
+ # Wallpaper
51
+ RUN wget -O /usr/share/images/desktop-base/default \
52
+ "https://images.unsplash.com/photo-1557683316-973673baf926?q=80&w=1280&auto=format&fit=crop" \
53
+ || true
54
+
55
+ # Favicon
56
+ RUN wget -O /usr/share/kasmvnc/www/favicon.ico \
57
+ "https://cdn-icons-png.flaticon.com/128/2342/2342441.png" \
58
+ || true
59
 
60
  # ==========================================
61
  # πŸ‘€ CREDENTIALS