mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-09-19 20:24:32 +02:00
Remove libc-dev and uninstall py (#392)
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user