Fix trivy issue (#1569)

Fix docker image security issue

Signed-off-by: ZePan110 <ze.pan@intel.com>
This commit is contained in:
ZePan110
2025-02-20 14:41:52 +08:00
committed by GitHub
parent d482554a6b
commit caec354324
4 changed files with 5 additions and 5 deletions

View File

@@ -15,7 +15,8 @@ RUN mkdir -p /home/user/gradio_cache
ENV GRADIO_TEMP_DIR=/home/user/gradio_cache
WORKDIR /home/user/ui
RUN pip install --no-cache-dir -r requirements.txt
RUN pip install --no-cache-dir --upgrade pip setuptools && \
pip install --no-cache-dir -r requirements.txt
USER user