c / Dockerfile
moustuofa's picture
Update Dockerfile
f3330d5 verified
raw
history blame
2.18 kB
# 1. Base Image: WebTop (Ubuntu XFCE)
FROM lscr.io/linuxserver/webtop:ubuntu-xfce
# Switch to root
USER root
# ==========================================
# ⚑ NETWORK BRIDGE
# ==========================================
RUN apt-get update && \
apt-get install -y socat wget && \
rm -rf /var/lib/apt/lists/*
RUN mkdir -p /etc/services.d/forwarder && \
echo '#!/usr/bin/with-contenv bash' > /etc/services.d/forwarder/run && \
echo 'exec socat TCP-LISTEN:7860,fork,reuseaddr TCP:127.0.0.1:3000' >> /etc/services.d/forwarder/run && \
chmod +x /etc/services.d/forwarder/run
# ==========================================
# πŸ“¦ PERMANENT PROGRAMS
# ==========================================
# Keeping it light: Chromium only.
RUN apt-get update && \
apt-get install -y \
chromium-browser \
xz-utils \
&& rm -rf /var/lib/apt/lists/*
# ==========================================
# 🀝 DUAL ADMIN (I ADDED THIS BACK)
# ==========================================
# This was missing in your code! It enables the popup.
ENV KASM_SVC_CONCURRENT_CONNECTIONS_PROMPT=true
# ==========================================
# πŸš€ 600KBPS SMOOTH TUNING
# ==========================================
# 540p Resolution (Sharp but fast)
ENV CUSTOM_RES_W=960
ENV CUSTOM_RES_H=540
# 18 FPS (Smooth enough)
ENV KASM_SVC_FRAMERATE=18
# Low Audio (Saves data)
ENV KASM_SVC_AUDIO_BITRATE=32000
# High Compression (Prevents Lag)
ENV KASM_SVC_VIDEO_CRF=33
# Disable Compositor (Speed Boost)
RUN xfconf-query -c xfwm4 -p /general/use_compositing -s false || true
# ==========================================
# 🎨 BRANDING
# ==========================================
ENV TITLE="MADEINLOVE"
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
RUN wget -O /usr/share/kasmvnc/www/favicon.ico "https://cdn-icons-png.flaticon.com/128/2342/2342441.png" || true
# ==========================================
# πŸ‘€ CREDENTIALS
# ==========================================
ENV CUSTOM_USER="Admin"
ENV PASSWORD="121459"
ENV PUID=1000
ENV PGID=1000
ENV TZ="Asia/Tehran"
EXPOSE 7860