Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

playwrite fix #50

Merged
merged 3 commits into from
May 20, 2024
Merged
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
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ RUN apt-get update -y && \

# playwrite
RUN npx -y playwright@1.43.0 install --with-deps


# setting python and more
RUN apt-get install python3-pip -y && \
Expand All @@ -34,6 +35,7 @@ RUN pyenv global $PY_VERSION
# setup code
COPY . .
RUN python -m pip install .
RUN python -m playwright install

VOLUME ["/usr/src/app/dumps"]

Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ services:
kniot-scrapper:
build:
context: .
target: prod
environment:
- XML_STORE_PATH=dumps/
- MONGO_URL=localhost
- MONGO_PORT=27017
- SE_MODE=True
- SE_MODE=False
container_name: kniot-scrapper
network_mode: "host"
hostname: kniot-scrapper
restart: unless-stopped
target: prod
volumes:
- ./dumps:/usr/src/app/dumps
- "/etc/timezone:/etc/timezone:ro"
Expand Down
Loading