mirror of
https://github.com/xtekky/gpt4free.git
synced 2024-12-23 11:02:40 +03:00
Fix docker armv7 cryptography module build (#2436)
* Update Dockerfile-armv7
This commit is contained in:
parent
9df8e07739
commit
0cf0c1f4e2
@ -11,9 +11,9 @@ ENV G4F_USER_ID $G4F_USER_ID
|
|||||||
ENV G4F_DIR /app
|
ENV G4F_DIR /app
|
||||||
|
|
||||||
RUN apt-get update && apt-get upgrade -y \
|
RUN apt-get update && apt-get upgrade -y \
|
||||||
&& apt-get install -y git \
|
&& apt-get install -y git curl \
|
||||||
&& apt-get install --quiet --yes --no-install-recommends \
|
&& apt-get install --quiet --yes --no-install-recommends \
|
||||||
build-essential libffi-dev zlib1g-dev libjpeg-dev \
|
build-essential libffi-dev zlib1g-dev libjpeg-dev libssl-dev pkg-config \
|
||||||
# Add user and user group
|
# Add user and user group
|
||||||
&& groupadd -g $G4F_USER_ID $G4F_USER \
|
&& groupadd -g $G4F_USER_ID $G4F_USER \
|
||||||
&& useradd -rm -G sudo -u $G4F_USER_ID -g $G4F_USER_ID $G4F_USER \
|
&& useradd -rm -G sudo -u $G4F_USER_ID -g $G4F_USER_ID $G4F_USER \
|
||||||
@ -26,7 +26,10 @@ USER $G4F_USER_ID
|
|||||||
WORKDIR $G4F_DIR
|
WORKDIR $G4F_DIR
|
||||||
|
|
||||||
ENV HOME /home/$G4F_USER
|
ENV HOME /home/$G4F_USER
|
||||||
ENV PATH "${HOME}/.local/bin:${PATH}"
|
ENV PATH "${HOME}/.local/bin:${HOME}/.cargo/bin:${PATH}"
|
||||||
|
|
||||||
|
# Install rust toolchain
|
||||||
|
RUN curl https://sh.rustup.rs -sSf | bash -s -- -y
|
||||||
|
|
||||||
# Create app dir and copy the project's requirements file into it
|
# Create app dir and copy the project's requirements file into it
|
||||||
RUN mkdir -p $G4F_DIR
|
RUN mkdir -p $G4F_DIR
|
||||||
@ -56,6 +59,7 @@ RUN pip uninstall --yes \
|
|||||||
USER root
|
USER root
|
||||||
|
|
||||||
# Clean up build deps
|
# Clean up build deps
|
||||||
|
RUN rm --recursive --force "${HOME}/.rustup"
|
||||||
RUN apt-get purge --auto-remove --yes \
|
RUN apt-get purge --auto-remove --yes \
|
||||||
build-essential \
|
build-essential \
|
||||||
&& apt-get clean \
|
&& apt-get clean \
|
||||||
|
Loading…
Reference in New Issue
Block a user