Commit 30f99d8e authored by Pierre Dittgen's avatar Pierre Dittgen
Browse files

Try to fix chromium headless crash

parent 1760ef53
# Changelog
# next
- Add dbus package install in `Dockerfile`
- Add `--disable-gpu` to chromium args
## 0.4.0a8
- Fix error sorting
......
......@@ -6,7 +6,8 @@ EXPOSE 5000
RUN pip install --no-cache-dir gunicorn==20.0.4
RUN apt-get update && \
apt-get install --yes --no-install-recommends chromium=87.0.4280.88-0.4~deb10u1
apt-get install --yes --no-install-recommends chromium=87.0.4280.88-0.4~deb10u1 && \
apt-get install --yes dbus
ARG uid=1000
ARG gid=1000
......
......@@ -583,6 +583,7 @@ def pdf_report():
"chromium",
"--headless",
"--no-sandbox",
"--disable-gpu",
f"--print-to-pdf={tmp_pdf_report}",
validation_url,
]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment