From 7d9a64013b6c4e03b7e403e87d55c95d9ac4c248 Mon Sep 17 00:00:00 2001 From: H Lohaus Date: Sun, 24 Nov 2024 18:42:00 +0100 Subject: Arm2 (#2415) * Fix arm v7 build / improve api * Update stubs.py * Fix unit tests * Fix arm build --- docker/Dockerfile-slim | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'docker') diff --git a/docker/Dockerfile-slim b/docker/Dockerfile-slim index 6cbf2254..d1199a2c 100644 --- a/docker/Dockerfile-slim +++ b/docker/Dockerfile-slim @@ -19,7 +19,8 @@ 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 + && echo "${G4F_USER}:${G4F_USER}" | chpasswd \ + && python -m pip install --upgrade pip USER $G4F_USER_ID WORKDIR $G4F_DIR @@ -35,15 +36,14 @@ COPY requirements-slim.txt $G4F_DIR RUN curl https://sh.rustup.rs -sSf | bash -s -- -y # Upgrade pip for the latest features and install the project's Python dependencies. -RUN python -m pip install --upgrade pip \ - && pip install --no-cache-dir \ +RUN pip install --no-cache-dir \ Cython==0.29.22 \ setuptools \ # Install PyDantic && pip install \ -vvv \ --no-cache-dir \ - --no-binary pydantic \ + --no-binary :all: \ --global-option=build_ext \ --global-option=-j8 \ pydantic==${PYDANTIC_VERSION} \ -- cgit v1.2.3