返回提交历史
Modified
docker/Dockerfile-slim
+4
-5
Modified
docker/update-cron
+1
-1
XFEstudio/gpt4free
Add live update
2c41e2aa
代码差异
2 个文件
+5
-6
@@ -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
@@ -1 +1 @@
1
0 * * * * cd /app && python -m etc.update
1
0 * * * * cd /app && python -m etc.update