build(web): use headless mode to avoid X/Wayland display init in CI

This commit is contained in:
dingo
2026-02-28 11:54:15 +00:00
parent 44bc876e9b
commit 80c0f4d372
+1 -1
View File
@@ -25,7 +25,7 @@ progressive_web_app/enabled=false
CFG
RUN sed -i 's#renderer/rendering_method="mobile"#renderer/rendering_method="compatibility"#' project.godot \
&& mkdir -p .godot/editor build/web \
&& godot --no-window --path /project --export-release "HTML5" build/web/index.html
&& godot --headless --path /project --export-release "HTML5" build/web/index.html
FROM nginx:1.27-alpine
COPY --from=build /project/build/web/ /usr/share/nginx/html/