mirror of
https://github.com/xtekky/gpt4free.git
synced 2025-12-06 02:30:41 -08:00
feat: add ffmpeg and flac installation to Dockerfiles
- Updated `Dockerfile` to install `ffmpeg` and `flac` along with existing packages. - Updated `Dockerfile-slim` to install `ffmpeg` and `flac` along with existing packages. - Modified `any_provider.py` to change how providers are handled when a model is specified, allowing for a submodel to be extracted and checked against the provider's attributes. - Adjusted `retry_provider.py` to ensure the alias for the model is correctly set based on the provider's model aliases, improving clarity in debug logging.
This commit is contained in:
parent
554b51a511
commit
e9179b87c2
4 changed files with 20 additions and 14 deletions
|
|
@ -19,7 +19,7 @@ RUN if [ "$G4F_VERSION" = "" ] ; then \
|
|||
RUN apt-get -qqy update \
|
||||
&& apt-get -qqy upgrade \
|
||||
&& apt-get -qyy autoremove \
|
||||
&& apt-get -qqy install python3 python-is-python3 pip \
|
||||
&& apt-get -qqy install python3 python-is-python3 pip ffmpeg flac \
|
||||
&& apt-get -qyy remove openjdk-11-jre-headless \
|
||||
&& apt-get -qyy autoremove \
|
||||
&& apt-get -qyy clean \
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ ENV G4F_USER_ID $G4F_USER_ID
|
|||
ENV G4F_DIR /app
|
||||
|
||||
RUN apt-get update && apt-get upgrade -y \
|
||||
&& apt-get install -y git cron \
|
||||
&& apt-get install -y git cron ffmpeg flac \
|
||||
# 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 \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue