docker: make images arm64-compatible (#2199)
* optimize multi-arch docker build on x86 * test * test * test * test * separate build * separate build * fix package versions * also fixes the release * orjson * orjson * fix cryptography * fix duckdb * all * all * fix * use provenance
This commit is contained in:
parent
682a1c65fe
commit
076498ebcf
4 changed files with 18 additions and 9 deletions
6
.github/workflows/docker-build.yml
vendored
6
.github/workflows/docker-build.yml
vendored
|
|
@ -58,9 +58,10 @@ jobs:
|
|||
with:
|
||||
context: .
|
||||
push: true
|
||||
platforms: "linux/amd64"
|
||||
file: ${{ needs.setup.outputs.file }}
|
||||
tags: ${{ needs.setup.outputs.tags }}
|
||||
# provenance: false will result in a single manifest for all platforms which makes the image pullable from arm64 machines via the emulation (e.g. Apple Silicon machines)
|
||||
provenance: false
|
||||
|
||||
build_components:
|
||||
if: ${{ inputs.release_type == 'main' }}
|
||||
|
|
@ -92,11 +93,12 @@ jobs:
|
|||
with:
|
||||
context: .
|
||||
push: true
|
||||
platforms: "linux/amd64"
|
||||
build-args: |
|
||||
LANGFLOW_IMAGE=langflowai/langflow:${{ inputs.version }}
|
||||
file: ${{ matrix.dockerfile }}
|
||||
tags: ${{ matrix.tags }}
|
||||
# provenance: false will result in a single manifest for all platforms which makes the image pullable from arm64 machines via the emulation (e.g. Apple Silicon machines)
|
||||
provenance: false
|
||||
|
||||
restart-space:
|
||||
name: Restart HuggingFace Spaces
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue