Merge pull request #2434 from foxfire52/pillow

Fix docker armv7 cffi pillow
This commit is contained in:
H Lohaus 2024-11-26 21:26:22 +01:00 committed by GitHub
commit 1b6f6f5443
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -13,7 +13,7 @@ ENV G4F_DIR /app
RUN apt-get update && apt-get upgrade -y \
&& apt-get install -y git \
&& apt-get install --quiet --yes --no-install-recommends \
build-essential \
build-essential libffi-dev zlib1g-dev libjpeg-dev \
# Add user and user group
&& groupadd -g $G4F_USER_ID $G4F_USER \
&& useradd -rm -G sudo -u $G4F_USER_ID -g $G4F_USER_ID $G4F_USER \
@ -64,4 +64,4 @@ RUN apt-get purge --auto-remove --yes \
USER $G4F_USER_ID
# Copy the entire package into the container.
ADD --chown=$G4F_USER:$G4F_USER g4f $G4F_DIR/g4f
ADD --chown=$G4F_USER:$G4F_USER g4f $G4F_DIR/g4f