File size: 867 Bytes
514f7d5
 
 
 
 
 
 
2e70950
514f7d5
89087b9
514f7d5
 
2e70950
89087b9
 
 
 
 
514f7d5
2e70950
514f7d5
 
 
 
 
 
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
FROM lscr.io/linuxserver/chromium:latest

# 1. Environment Configuration
ENV PUID=1000
ENV PGID=1000
ENV TZ=Etc/UTC

# 2. KasmVNC Settings
ENV KASM_PORT=3000
ENV TITLE="Chromium WebGL"
ENV FM_HOME=/config

# 3. FLAGS TO ENABLE WEBGL (The Fix)
# --use-gl=swiftshader: Forces Chrome to use CPU for 3D graphics (SwiftShader).
# --enable-webgl: explicitly turns it on.
# --ignore-gpu-blocklist: Forces Chrome to ignore the fact that there is no real GPU.
# We REMOVED '--disable-gpu' and '--disable-software-rasterizer'.
ENV CHROME_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