remove forcing headless and handmade symlink

This commit is contained in:
ThePhaseless 2025-02-20 20:57:05 +00:00
parent 19e5183bb6
commit 1f16140d46

View File

@ -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