diff options
author | H Lohaus <hlohaus@users.noreply.github.com> | 2024-03-26 21:50:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-26 21:50:35 +0100 |
commit | dd08125bb4740ab5dc1116868ff237ce51ae3d5e (patch) | |
tree | ed6339c66505409e7dced6d3499814b00446ff12 /docker/Dockerfile | |
parent | Merge pull request #1754 from hlohaus/goo (diff) | |
parent | Fix load .har files, add hardir to docker, add docs (diff) | |
download | gpt4free-dd08125bb4740ab5dc1116868ff237ce51ae3d5e.tar gpt4free-dd08125bb4740ab5dc1116868ff237ce51ae3d5e.tar.gz gpt4free-dd08125bb4740ab5dc1116868ff237ce51ae3d5e.tar.bz2 gpt4free-dd08125bb4740ab5dc1116868ff237ce51ae3d5e.tar.lz gpt4free-dd08125bb4740ab5dc1116868ff237ce51ae3d5e.tar.xz gpt4free-dd08125bb4740ab5dc1116868ff237ce51ae3d5e.tar.zst gpt4free-dd08125bb4740ab5dc1116868ff237ce51ae3d5e.zip |
Diffstat (limited to 'docker/Dockerfile')
-rw-r--r-- | docker/Dockerfile | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile index 8b2d5b7b..3e606ae6 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -81,7 +81,14 @@ WORKDIR $G4F_DIR COPY requirements.txt $G4F_DIR # Upgrade pip for the latest features and install the project's Python dependencies. -RUN pip install --break-system-packages --upgrade pip && pip install --break-system-packages -r requirements.txt +RUN pip install --break-system-packages --upgrade pip \ + && pip install --break-system-packages -r requirements.txt + +# Install selenium driver and uninstall webdriver +RUN pip install --break-system-packages \ + undetected-chromedriver selenium-wire \ + && pip uninstall -y --break-system-packages \ + webdriver plyer # Copy the entire package into the container. ADD --chown=$G4F_USER:$G4F_USER g4f $G4F_DIR/g4f |