FROM lscr.io/linuxserver/msedge:latest # 1. Environment Configuration ENV PUID=1000 ENV PGID=1000 ENV TZ=Etc/UTC # 2. KasmVNC Settings ENV KASM_PORT=3000 ENV TITLE="MS Edge" ENV FM_HOME=/config # 3. FLAGS TO ENABLE WEBGL (The Fix) # --use-gl=swiftshader: Forces to use CPU for 3D graphics (SwiftShader). # --enable-webgl: explicitly turns it on. # --ignore-gpu-blocklist: Forces EDGE to ignore the fact that there is no real GPU. # We REMOVED '--disable-gpu' and '--disable-software-rasterizer'. ENV EDGE_CLI="--no-sandbox --disable-dev-shm-usage --use-gl=swiftshader --enable-webgl --ignore-gpu-blocklist --disable-features=DnsOverHttpsUpgrade --dns-result-order=ipv4first" # 4. Permission Fix (Prevents Crash Loop) RUN mkdir -p /config && \ chown -R 1000:1000 /config && \ chmod -R 777 /config # Expose the internal port EXPOSE 3000