summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH Lohaus <hlohaus@users.noreply.github.com>2024-03-16 22:31:01 +0100
committerGitHub <noreply@github.com>2024-03-16 22:31:01 +0100
commitb4190878dc7d2507604c8558d525b228e1bf1207 (patch)
treebc74ddf88c273ceeb484243aca89e126c72b2b47
parentMerge pull request #1716 from hlohaus/giga (diff)
parentfeat: arm64 (diff)
downloadgpt4free-b4190878dc7d2507604c8558d525b228e1bf1207.tar
gpt4free-b4190878dc7d2507604c8558d525b228e1bf1207.tar.gz
gpt4free-b4190878dc7d2507604c8558d525b228e1bf1207.tar.bz2
gpt4free-b4190878dc7d2507604c8558d525b228e1bf1207.tar.lz
gpt4free-b4190878dc7d2507604c8558d525b228e1bf1207.tar.xz
gpt4free-b4190878dc7d2507604c8558d525b228e1bf1207.tar.zst
gpt4free-b4190878dc7d2507604c8558d525b228e1bf1207.zip
Diffstat (limited to '')
-rw-r--r--.github/workflows/publish-workflow.yaml5
-rw-r--r--docker/Dockerfile6
2 files changed, 8 insertions, 3 deletions
diff --git a/.github/workflows/publish-workflow.yaml b/.github/workflows/publish-workflow.yaml
index 634a5b31..bfc0b735 100644
--- a/.github/workflows/publish-workflow.yaml
+++ b/.github/workflows/publish-workflow.yaml
@@ -11,6 +11,10 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
+ - name: Set up QEMU
+ uses: docker/setup-qemu-action@v3
+ - name: Set up Docker Buildx
+ uses: docker/setup-buildx-action@v3
- name: Get metadata for Docker
id: metadata
@@ -38,6 +42,7 @@ jobs:
with:
context: .
file: docker/Dockerfile
+ platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.metadata.outputs.tags }}
labels: ${{ steps.metadata.outputs.labels }}
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 88e21b18..8b2d5b7b 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -1,4 +1,4 @@
-FROM selenium/node-chrome
+FROM seleniarm/node-chromium
ARG G4F_VERSION
ARG G4F_USER=g4f
@@ -81,10 +81,10 @@ WORKDIR $G4F_DIR
COPY requirements.txt $G4F_DIR
# Upgrade pip for the latest features and install the project's Python dependencies.
-RUN pip install --upgrade pip && pip install -r requirements.txt
+RUN pip install --break-system-packages --upgrade pip && pip install --break-system-packages -r requirements.txt
# Copy the entire package into the container.
ADD --chown=$G4F_USER:$G4F_USER g4f $G4F_DIR/g4f
# Expose ports
-EXPOSE 8080 1337 \ No newline at end of file
+EXPOSE 8080 1337