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

XFEstudio/gpt4free

Enable armv7 build, add timeout for installing packages

39255fc0
hlohaus <983577+hlohaus@users.noreply.github.com>
提交于

代码差异

2 个文件 +14 -14
Modified .github/workflows/publish-workflow.yaml +13 -13
@@ -57,19 +57,19 @@ jobs:
57 57 username: ${{ github.repository_owner }}
58 58 password: ${{ secrets.GHCR_PAT }}
59 59
60 # - name: Build and push armv7 image
61 # uses: docker/build-push-action@v5
62 # with:
63 # context: .
64 # file: docker/Dockerfile-armv7
65 # platforms: linux/arm/v7
66 # push: true
67 # tags: |
68 # hlohaus789/g4f:latest-armv7
69 # hlohaus789/g4f:${{ github.ref_name }}-armv7
70 # labels: ${{ steps.metadata.outputs.labels }}
71 # build-args: |
72 # G4F_VERSION=${{ github.ref_name }}
60 - name: Build and push armv7 image
61 uses: docker/build-push-action@v5
62 with:
63 context: .
64 file: docker/Dockerfile-armv7
65 platforms: linux/arm/v7
66 push: true
67 tags: |
68 hlohaus789/g4f:latest-armv7
69 hlohaus789/g4f:${{ github.ref_name }}-armv7
70 labels: ${{ steps.metadata.outputs.labels }}
71 build-args: |
72 G4F_VERSION=${{ github.ref_name }}
73 73
74 74 - name: Build and push small images
75 75 uses: docker/build-push-action@v5
Modified docker/Dockerfile-armv7 +1 -1
@@ -49,7 +49,7 @@ RUN pip install --no-cache-dir -r requirements-min.txt \
49 49 --global-option=build_ext \
50 50 --global-option=-j8 \
51 51 pydantic==${PYDANTIC_VERSION}
52 RUN cat requirements-slim.txt | xargs -n 1 pip install --no-cache-dir || true
52 RUN cat requirements-slim.txt | xargs -n 1 timeout 5m pip install --no-cache-dir || true
53 53
54 54 # Remove build packages
55 55 RUN pip uninstall --yes \