From 20331c5f9fa75f4606c4626d86e6968b3ea18c38 Mon Sep 17 00:00:00 2001 From: Thephaseless Date: Thu, 2 Jan 2025 12:29:10 +0000 Subject: [PATCH] disable headless on docker --- Dockerfile | 2 ++ README.md | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index aaf2894..28604bb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,6 +25,8 @@ RUN uv sync COPY . . RUN cd .venv/lib/*/site-packages/seleniumbase/drivers && ln -s /usr/bin/chromedriver uc_driver +ENV USE_HEADLESS=false + FROM base AS test RUN uv sync --group test diff --git a/README.md b/README.md index 24090f6..3c831f8 100644 --- a/README.md +++ b/README.md @@ -25,10 +25,10 @@ An alternative to [FlareSolverr](https://github.com/FlareSolverr/FlareSolverr) a ## Options -| Env | Default | Description | -| -------------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | -| `USE_XVFB` | `false` | Use virtual desktop with Xvfb. Requires Xvfb supported platform. (Can cause performance hog [#14](https://github.com/ThePhaseless/Byparr/issues/14)) | -| `USE_HEADLESS` | `true` | Use headless chromium. | +| Env | Default | Description | +| -------------- | ---------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | +| `USE_XVFB` | `false` | Use virtual desktop with Xvfb. Requires Xvfb supported platform. (Can cause performance hog [#14](https://github.com/ThePhaseless/Byparr/issues/14)) | +| `USE_HEADLESS` | `true/false on docker` | Use headless chromium. | ## Tags