mirror of
https://github.com/xtekky/gpt4free.git
synced 2025-12-24 13:07:53 +08:00
Remove redundant pip upgrade command from Dockerfiles
This commit is contained in:
@@ -18,8 +18,7 @@ RUN apt-get update && apt-get upgrade -y \
|
||||
&& useradd -rm -G sudo -u $G4F_USER_ID -g $G4F_USER_ID $G4F_USER \
|
||||
&& mkdir -p /var/log/supervisor \
|
||||
&& chown "${G4F_USER_ID}:${G4F_USER_ID}" /var/log/supervisor \
|
||||
&& echo "${G4F_USER}:${G4F_USER}" | chpasswd \
|
||||
&& python -m pip install --upgrade pip
|
||||
&& echo "${G4F_USER}:${G4F_USER}" | chpasswd
|
||||
|
||||
USER $G4F_USER_ID
|
||||
WORKDIR $G4F_DIR
|
||||
|
||||
@@ -17,7 +17,6 @@ RUN apt-get update && apt-get upgrade -y \
|
||||
&& groupadd -g $G4F_USER_ID $G4F_USER \
|
||||
&& useradd -rm -G sudo -u $G4F_USER_ID -g $G4F_USER_ID $G4F_USER \
|
||||
&& echo "${G4F_USER}:${G4F_USER}" | chpasswd \
|
||||
&& python -m pip install --upgrade pip \
|
||||
&& apt-get clean \
|
||||
&& rm --recursive --force /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||
|
||||
|
||||
Reference in New Issue
Block a user