doltd1no commited on
Commit
4c67f9e
·
verified ·
1 Parent(s): 3345075

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +26 -0
Dockerfile ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM lscr.io/linuxserver/msedge:latest
2
+
3
+ # 1. Environment Configuration
4
+ ENV PUID=1000
5
+ ENV PGID=1000
6
+ ENV TZ=Etc/UTC
7
+
8
+ # 2. KasmVNC Settings
9
+ ENV KASM_PORT=3000
10
+ ENV TITLE="MS Edge"
11
+ ENV FM_HOME=/config
12
+
13
+ # 3. FLAGS TO ENABLE WEBGL (The Fix)
14
+ # --use-gl=swiftshader: Forces to use CPU for 3D graphics (SwiftShader).
15
+ # --enable-webgl: explicitly turns it on.
16
+ # --ignore-gpu-blocklist: Forces EDGE to ignore the fact that there is no real GPU.
17
+ # We REMOVED '--disable-gpu' and '--disable-software-rasterizer'.
18
+ ENV EDGE_CLI="--no-sandbox --disable-dev-shm-usage --use-gl=swiftshader --enable-webgl --ignore-gpu-blocklist --disable-features=DnsOverHttpsUpgrade --dns-result-order=ipv4first"
19
+
20
+ # 4. Permission Fix (Prevents Crash Loop)
21
+ RUN mkdir -p /config && \
22
+ chown -R 1000:1000 /config && \
23
+ chmod -R 777 /config
24
+
25
+ # Expose the internal port
26
+ EXPOSE 3000