mirror of
https://github.com/xtekky/gpt4free.git
synced 2024-11-05 00:01:00 +00:00
Merge pull request #1712 from exfly/be-feat-arm
feat: docker add arm64 support
This commit is contained in:
commit
b4190878dc
5
.github/workflows/publish-workflow.yaml
vendored
5
.github/workflows/publish-workflow.yaml
vendored
@ -11,6 +11,10 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
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
|
- name: Get metadata for Docker
|
||||||
id: metadata
|
id: metadata
|
||||||
@ -38,6 +42,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
file: docker/Dockerfile
|
file: docker/Dockerfile
|
||||||
|
platforms: linux/amd64,linux/arm64
|
||||||
push: true
|
push: true
|
||||||
tags: ${{ steps.metadata.outputs.tags }}
|
tags: ${{ steps.metadata.outputs.tags }}
|
||||||
labels: ${{ steps.metadata.outputs.labels }}
|
labels: ${{ steps.metadata.outputs.labels }}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
FROM selenium/node-chrome
|
FROM seleniarm/node-chromium
|
||||||
|
|
||||||
ARG G4F_VERSION
|
ARG G4F_VERSION
|
||||||
ARG G4F_USER=g4f
|
ARG G4F_USER=g4f
|
||||||
@ -81,10 +81,10 @@ WORKDIR $G4F_DIR
|
|||||||
COPY requirements.txt $G4F_DIR
|
COPY requirements.txt $G4F_DIR
|
||||||
|
|
||||||
# Upgrade pip for the latest features and install the project's Python dependencies.
|
# 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.
|
# Copy the entire package into the container.
|
||||||
ADD --chown=$G4F_USER:$G4F_USER g4f $G4F_DIR/g4f
|
ADD --chown=$G4F_USER:$G4F_USER g4f $G4F_DIR/g4f
|
||||||
|
|
||||||
# Expose ports
|
# Expose ports
|
||||||
EXPOSE 8080 1337
|
EXPOSE 8080 1337
|
||||||
|
Loading…
Reference in New Issue
Block a user