diff --git a/Dockerfile b/Dockerfile index ceceb35..aac6e20 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ -FROM python:3.12-slim -ENV PYTHONIOENCODING utf-8 +FROM mcr.microsoft.com/playwright/python:v1.47.0-noble +ENV PYTHONIOENCODING=utf-8 COPY /src /code/src/ COPY /tests /code/tests/ @@ -17,13 +17,6 @@ RUN pip install flake8 RUN pip install -r /code/requirements.txt -RUN playwright install --with-deps chromium - -# workaround from https://github.com/stitionai/devika/issues/297 -RUN useradd -m -s /bin/bash myuser -USER myuser -RUN playwright install chromium - WORKDIR /code/ -CMD ["sh", "-c", "Xvfb :99 -nolisten tcp -nolisten unix -screen 0 1024x768x24 & export DISPLAY=:99 && python -u /code/src/component.py"] \ No newline at end of file +CMD ["bash", "-c", "Xvfb :99 -nolisten tcp -nolisten unix -screen 0 1024x768x24 & export DISPLAY=:99 && python -u /code/src/component.py"] \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index d53bbba..24f176a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -7,5 +7,5 @@ dataconf==2.5.0 requests-html==0.10.0 keboola.csvwriter==1.0.1 lxml==5.1.0 -playwright==1.46.0 +playwright==1.47.0 backoff==2.2.1 \ No newline at end of file