XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet
公开
关注 0 Fork 0 Star 0
返回提交历史

XFEstudio/gpt4free

Add live update

2c41e2aa
hlohaus <983577+hlohaus@users.noreply.github.com>
提交于

代码差异

2 个文件 +5 -6
Modified docker/Dockerfile-slim +4 -5
@@ -21,18 +21,17 @@ RUN apt-get update && apt-get upgrade -y \
21 21 && apt-get clean \
22 22 && rm --recursive --force /var/lib/apt/lists/* /tmp/* /var/tmp/*
23 23
24 RUN mkdir -p $G4F_DIR
25 RUN chown "${G4F_USER_ID}:${G4F_USER_ID}" $G4F_DIR
26
24 27 USER $G4F_USER_ID
25 28 WORKDIR $G4F_DIR
26 29
27 30 ENV HOME /home/$G4F_USER
28 31 ENV PATH "${HOME}/.local/bin:${PATH}"
29 32
33 RUN git clone https://github.com/xtekky/gpt4free.git $G4F_DIR
30 34 RUN crontab docker/update-cron
31
32 # Create app dir and copy the project's requirements file into it
33 RUN git clone git@github.com:xtekky/gpt4free.git $G4F_DIR
34
35 # Upgrade pip for the latest features and install the project's Python dependencies.
36 35 RUN pip install --no-cache-dir -r requirements-slim.txt
37 36
38 37 CMD python -m g4f --debug --reload
Modified docker/update-cron +1 -1
@@ -1 +1 @@
1 0 * * * * cd /app && python -m etc.update
1 0 * * * * cd /app && python -m etc.update