mirror of
https://github.com/ThePhaseless/Byparr.git
synced 2025-03-15 09:50:20 +08:00
remove forcing headless and handmade symlink
This commit is contained in:
parent
19e5183bb6
commit
1f16140d46
@ -17,15 +17,12 @@ ENV \
|
|||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
RUN apt update &&\
|
RUN apt update &&\
|
||||||
apt upgrade -y &&\
|
apt upgrade -y &&\
|
||||||
apt install -y --no-install-recommends --no-install-suggests xauth xvfb scrot curl chromium chromium-driver ca-certificates x11-common
|
apt install -y --no-install-recommends --no-install-suggests xauth xvfb scrot curl chromium ca-certificates
|
||||||
RUN curl -LsSf https://astral.sh/uv/install.sh | sh
|
RUN curl -LsSf https://astral.sh/uv/install.sh | sh
|
||||||
COPY pyproject.toml uv.lock ./
|
COPY pyproject.toml uv.lock ./
|
||||||
RUN uv sync
|
RUN uv sync
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user