Skip to content

Commit

Permalink
playwright image, update version
Browse files Browse the repository at this point in the history
  • Loading branch information
kudj committed Oct 2, 2024
1 parent c094751 commit d2fc286
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
13 changes: 3 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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/
Expand All @@ -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"]
CMD ["bash", "-c", "Xvfb :99 -nolisten tcp -nolisten unix -screen 0 1024x768x24 & export DISPLAY=:99 && python -u /code/src/component.py"]
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit d2fc286

Please sign in to comment.