mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-03-26 17:51:54 +01:00
Remove libc-dev and uninstall py (#392)
This commit is contained in:
parent
c28f4d4527
commit
f4866bfefc
@ -10,11 +10,16 @@ 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 pip uninstall -y py
|
||||
|
||||
RUN playwright install chromium
|
||||
RUN playwright install-deps chromium
|
||||
|
||||
# Cleanup for CVEs and size reduction
|
||||
RUN apt-get remove -y linux-libc-dev \
|
||||
&& apt-get autoremove -y \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
WORKDIR /app
|
||||
COPY ./danswer /app/danswer
|
||||
COPY ./alembic /app/alembic
|
||||
|
Loading…
x
Reference in New Issue
Block a user