mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-04-08 03:48:14 +02:00
Remove py library due to denial of service CVE (#391)
This commit is contained in:
parent
884f746211
commit
c28f4d4527
@ -8,6 +8,10 @@ RUN apt-get update \
|
||||
|
||||
COPY ./requirements/default.txt /tmp/requirements.txt
|
||||
RUN pip install --no-cache-dir --upgrade -r /tmp/requirements.txt
|
||||
|
||||
# Remove py which is pulled in by retry, py is not needed and is a CVE
|
||||
RUN pip uninstall py
|
||||
|
||||
RUN playwright install chromium
|
||||
RUN playwright install-deps chromium
|
||||
|
||||
|
@ -37,9 +37,9 @@ python-multipart==0.0.6
|
||||
qdrant-client==1.2.0
|
||||
requests==2.31.0
|
||||
requests-oauthlib==1.3.1
|
||||
retry==0.9.2
|
||||
retry==0.9.2 # This pulls in py which is in CVE-2022-42969, must remove py from image
|
||||
rfc3986==1.5.0
|
||||
# need to pin `safetensors` version, since the latest versions require
|
||||
# need to pin `safetensors` version, since the latest versions requires
|
||||
# building from source using Rust
|
||||
safetensors==0.3.1
|
||||
sentence-transformers==2.2.2
|
||||
|
Loading…
x
Reference in New Issue
Block a user