moustuofa commited on
Commit
c5a31b6
·
verified ·
1 Parent(s): 646bcff

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +26 -22
Dockerfile CHANGED
@@ -1,14 +1,14 @@
1
- # 1. Base Image: Chromium
2
- FROM lscr.io/linuxserver/chromium:latest
3
 
4
- # Switch to root for installation
5
  USER root
6
 
7
  # ==========================================
8
- # ⚡ NETWORK BRIDGE (The Fix)
9
  # ==========================================
10
  RUN apt-get update && \
11
- apt-get install -y socat && \
12
  rm -rf /var/lib/apt/lists/*
13
 
14
  # Forward Hugging Face Port (7860) -> Internal Web Port (3000)
@@ -18,35 +18,39 @@ RUN mkdir -p /etc/services.d/forwarder && \
18
  chmod +x /etc/services.d/forwarder/run
19
 
20
  # ==========================================
21
- # 🚀 ADSL SUPERCHARGE SETTINGS
22
  # ==========================================
23
 
24
- # 1. FORCE 720p (Saves 50% bandwidth vs 1080p)
25
- ENV CUSTOM_RES_W=1280
26
- ENV CUSTOM_RES_H=720
 
27
 
28
- # 2. CINEMA FRAMERATE (Saves 60% bandwidth vs 60fps)
29
- # Movies are 24fps. We don't need more.
30
- ENV KASM_SVC_FRAMERATE=24
31
 
32
- # 3. AUDIO OPTIMIZATION
33
- # 96k is perfect for movies, saves bandwidth over 128k+
34
- ENV KASM_SVC_AUDIO_BITRATE=96000
35
 
36
- # 4. BROWSER PERFORMANCE FLAGS
37
- # --disable-smooth-scrolling: Saves frames
38
- # --disable-gpu-vsync: Reduces input lag
39
- ENV CHROME_CLI="https://showboxmovies.net --start-maximized --no-sandbox --disable-gpu --disable-smooth-scrolling --disable-gpu-vsync"
40
 
41
  # ==========================================
42
- # 🎨 BRANDING
43
  # ==========================================
44
  ENV TITLE="MADE IN LOVE Cinema"
 
 
 
 
 
 
45
  ENV PUID=1000
46
  ENV PGID=1000
47
  ENV TZ="Asia/Tehran"
48
- ENV CUSTOM_USER="Admin"
49
- ENV PASSWORD="121459"
50
 
51
  # Expose the port
52
  EXPOSE 7860
 
1
+ # 1. Base Image: WebTop (Full Desktop Interface)
2
+ FROM lscr.io/linuxserver/webtop:ubuntu-xfce
3
 
4
+ # Switch to root to perform installations and tweaks
5
  USER root
6
 
7
  # ==========================================
8
+ # ⚡ NETWORK BRIDGE (The Fix for Hugging Face)
9
  # ==========================================
10
  RUN apt-get update && \
11
+ apt-get install -y socat wget && \
12
  rm -rf /var/lib/apt/lists/*
13
 
14
  # Forward Hugging Face Port (7860) -> Internal Web Port (3000)
 
18
  chmod +x /etc/services.d/forwarder/run
19
 
20
  # ==========================================
21
+ # 🚀 600kbps INTERNET OPTIMIZATION
22
  # ==========================================
23
 
24
+ # 1. Resolution: DVD Quality (1024x576)
25
+ # 720p is too heavy for 600kbps. 576p reduces data by 40% vs 720p.
26
+ ENV CUSTOM_RES_W=1024
27
+ ENV CUSTOM_RES_H=576
28
 
29
+ # 2. Framerate: 20 FPS
30
+ # Movies are 24fps, but 20fps saves 20% bandwidth and prevents stuttering.
31
+ ENV KASM_SVC_FRAMERATE=20
32
 
33
+ # 3. Audio: Low Bitrate
34
+ # 64k is sufficient for voice/dialogue and saves precious bandwidth.
35
+ ENV KASM_SVC_AUDIO_BITRATE=64000
36
 
37
+ # 4. Disable XFCE Compositor (Transparency/Shadows)
38
+ # This removes "eye candy" to make the desktop stream faster.
39
+ RUN xfconf-query -c xfwm4 -p /general/use_compositing -s false || true
 
40
 
41
  # ==========================================
42
+ # 💖 BRANDING & CREDENTIALS
43
  # ==========================================
44
  ENV TITLE="MADE IN LOVE Cinema"
45
+
46
+ # IMPORTANT: Linux users are usually lowercase.
47
+ # We set it to 'Admin' as requested, but if login fails, try 'admin'.
48
+ ENV CUSTOM_USER="Admin"
49
+ ENV PASSWORD="121459"
50
+
51
  ENV PUID=1000
52
  ENV PGID=1000
53
  ENV TZ="Asia/Tehran"
 
 
54
 
55
  # Expose the port
56
  EXPOSE 7860