Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ RUN /root/.local/bin/pipenv install minio==7.2.15
RUN /root/.local/bin/pipenv install scrapy-playwright==0.0.43

# baixa SOMENTE os browsers (sem --with-deps aqui)
RUN /root/.local/bin/pipenv run playwright install firefox
RUN PLAYWRIGHT_BROWSERS_PATH=/ms-playwright /root/.local/bin/pipenv run playwright install firefox

# Confirma que playwright foi instalado corretamente
RUN /usr/src/.venv/bin/python -c "import playwright; print(playwright)"
Expand Down Expand Up @@ -43,7 +43,7 @@ COPY --from=builder /ms-playwright/ /ms-playwright/
ENV PATH=/usr/src/.venv/bin:$PATH \
PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
PLAYWRIGHT_BROWSERS_PATH=/usr/src/.venv/pw-browsers
PLAYWRIGHT_BROWSERS_PATH=/ms-playwright

WORKDIR /project

Expand Down
1 change: 1 addition & 0 deletions compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ services:
env_file: .env
build:
context: .
user: root
container_name: healthcheck_scraper
volumes:
- .:/project/
Expand Down