返回提交历史
Modified
.github/workflows/publish-workflow.yaml
+5
-0
Modified
docker/Dockerfile
+3
-3
XFEstudio/gpt4free
feat: arm64
4654d7f2
代码差异
2 个文件
+8
-3
@@ -11,6 +11,10 @@ jobs:
11
11
steps:
12
12
- name: Checkout repository
13
13
uses: actions/checkout@v4
14
- name: Set up QEMU
15
uses: docker/setup-qemu-action@v3
16
- name: Set up Docker Buildx
17
uses: docker/setup-buildx-action@v3
14
18
15
19
- name: Get metadata for Docker
16
20
id: metadata
@@ -38,6 +42,7 @@ jobs:
38
42
with:
39
43
context: .
40
44
file: docker/Dockerfile
45
platforms: linux/amd64,linux/arm64
41
46
push: true
42
47
tags: ${{ steps.metadata.outputs.tags }}
43
48
labels: ${{ steps.metadata.outputs.labels }}
@@ -1,4 +1,4 @@
1
FROM selenium/node-chrome
1
FROM seleniarm/node-chromium
2
2
3
3
ARG G4F_VERSION
4
4
ARG G4F_USER=g4f
@@ -81,10 +81,10 @@ WORKDIR $G4F_DIR
81
81
COPY requirements.txt $G4F_DIR
82
82
83
83
# Upgrade pip for the latest features and install the project's Python dependencies.
84
RUN pip install --upgrade pip && pip install -r requirements.txt
84
RUN pip install --break-system-packages --upgrade pip && pip install --break-system-packages -r requirements.txt
85
85
86
86
# Copy the entire package into the container.
87
87
ADD --chown=$G4F_USER:$G4F_USER g4f $G4F_DIR/g4f
88
88
89
89
# Expose ports
90
EXPOSE 8080 1337
90
EXPOSE 8080 1337