disable headless on docker

This commit is contained in:
Thephaseless 2025-01-02 12:29:10 +00:00
parent e858539ff9
commit 20331c5f9f
2 changed files with 6 additions and 4 deletions

View File

@ -25,6 +25,8 @@ RUN uv sync
COPY . . COPY . .
RUN cd .venv/lib/*/site-packages/seleniumbase/drivers && ln -s /usr/bin/chromedriver uc_driver RUN cd .venv/lib/*/site-packages/seleniumbase/drivers && ln -s /usr/bin/chromedriver uc_driver
ENV USE_HEADLESS=false
FROM base AS test FROM base AS test
RUN uv sync --group test RUN uv sync --group test

View File

@ -25,10 +25,10 @@ An alternative to [FlareSolverr](https://github.com/FlareSolverr/FlareSolverr) a
## Options ## Options
| Env | Default | Description | | 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_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. | | `USE_HEADLESS` | `true/false on docker` | Use headless chromium. |
## Tags ## Tags