Skip to content

Commit 0ab2684

Browse files
Docker: Add chromium-swiftshader to support webGL (#623)
* add swiftshader * add flag --------- Co-authored-by: Joshua Adkins <[email protected]>
1 parent 0bbca43 commit 0ab2684

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ENV XDG_CACHE_HOME=/tmp/.chromium
1111
WORKDIR /usr/src/app
1212

1313
RUN apk --no-cache upgrade && \
14-
apk add --no-cache udev ttf-opensans unifont chromium ca-certificates dumb-init && \
14+
apk add --no-cache udev ttf-opensans unifont chromium chromium-swiftshader ca-certificates dumb-init && \
1515
rm -rf /tmp/*
1616

1717
# Build stage

default.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
},
2727
"rendering": {
2828
"chromeBin": null,
29-
"args": ["--no-sandbox", "--disable-gpu"],
29+
"args": ["--no-sandbox", "--disable-gpu", "--use-gl=swiftshader"],
3030
"ignoresHttpsErrors": false,
3131

3232
"timezone": null,

dev.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
},
2020
"rendering": {
2121
"chromeBin": null,
22-
"args": ["--no-sandbox", "--disable-setuid-sandbox", "--disable-gpu"],
22+
"args": ["--no-sandbox", "--disable-setuid-sandbox", "--disable-gpu", "--use-gl=swiftshader"],
2323
"ignoresHttpsErrors": false,
2424

2525
"timezone": null,

devenv/docker/custom-config/config.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@
2020
"rendering": {
2121
"chromeBin": null,
2222
"args": [
23-
"--no-sandbox"
23+
"--no-sandbox",
24+
"--disable-setuid-sandbox",
25+
"--disable-gpu",
26+
"--use-gl=swiftshader"
2427
],
2528
"ignoresHttpsErrors": false,
2629

0 commit comments

Comments
 (0)