Fix trivy issue (#1569)
Fix docker image security issue Signed-off-by: ZePan110 <ze.pan@intel.com>
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user