You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FROM python:3.12-slim
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y \
wget \
gnupg \
curl \
unzip \
gcc \
libpq-dev \
libnss3 \
libatk1.0-0 \
libatk-bridge2.0-0 \
libcups2 \
libdrm2 \
libxkbcommon0 \
libxcomposite1 \
libxdamage1 \
libxrandr2 \
libgbm1 \
libgtk-3-0 \
libasound2 \
libxshmfence1 \
libx11-xcb1 \
xdg-utils \
fonts-liberation \
libu2f-udev \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
RUN pip install poetry
WORKDIR /app
COPY pyproject.toml poetry.lock* ./
ARG CODEARTIFACT_AUTH_TOKEN
RUN if [ -z "$CODEARTIFACT_AUTH_TOKEN" ]; then \
echo "ERROR: CODEARTIFACT_AUTH_TOKEN build argument is required" && \
exit 1; \
fi
RUN poetry config http-basic.codeartifact aws $CODEARTIFACT_AUTH_TOKEN
RUN poetry install --no-root --without dev
# Install Playwright Chrome and its dependencies
RUN poetry run playwright install --with-deps chrome
COPY . .
RUN poetry install
CMD poetry run python src/xxx_scraper/pipeline/subscriber_xxx.py
but on running the thing i get
File "/app/.venv/lib/python3.12/site-packages/botasaurus_driver/core/browser.py", line 59, in ensure_chrome_is_alive
90c0e97498ae437c8034583e9666beae
ddg_indiamart_scraper_scraper_dev
15 July 2025 at 17:09 (UTC+5:30)
raise Exception(f"Failed to connect to Chrome URL: {url}.")
90c0e97498ae437c8034583e9666beae
ddg_indiamart_scraper_scraper_dev
15 July 2025 at 17:09 (UTC+5:30)
Exception: Failed to connect to Chrome URL: http://127.0.0.1:53292/json/version.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
this my setup script for the docker:
but on running the thing i get
i have tried updating the script to below:
but this doesnt seem to help with it. Am i missing something here? the code works fine locally
Beta Was this translation helpful? Give feedback.
All reactions