Skip to content

Commit 76c195b

Browse files
fix: enable software WebGL (SwiftShader) in Chrome wrapper for map rendering
Without a real GPU, Chrome disables WebGL which breaks map libraries like MapLibre GL / Mapbox GL. Add --use-gl=swiftshader --enable-webgl --ignore-gpu-blocklist to force software WebGL rendering inside Docker. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 46ce119 commit 76c195b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Docker-Images/Developer/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,8 @@ if [ -x /opt/google/chrome/google-chrome ]; then
207207
mv /usr/bin/google-chrome-stable /usr/bin/google-chrome-stable.real 2>/dev/null || true
208208
cat > /usr/bin/google-chrome-stable <<'GCWRAP'
209209
#!/bin/sh
210-
exec /opt/google/chrome/google-chrome --no-sandbox --disable-gpu-sandbox --disable-setuid-sandbox "$@"
210+
exec /opt/google/chrome/google-chrome --no-sandbox --disable-gpu-sandbox --disable-setuid-sandbox \
211+
--use-gl=swiftshader --enable-webgl --ignore-gpu-blocklist --disable-dev-shm-usage "$@"
211212
GCWRAP
212213
chmod +x /usr/bin/google-chrome-stable
213214
ln -sf google-chrome-stable /usr/bin/google-chrome 2>/dev/null || true

0 commit comments

Comments
 (0)