Skip to content

Commit 2fe2161

Browse files
committed
feat(docker): add multi-architecture support for Docker images
Add support for linux/amd64, linux/arm64, and linux/arm/v7 architectures in Docker builds. Update CI workflow to use QEMU and build for all target platforms. Documentation has been updated to reflect these changes.
1 parent 0df5d5d commit 2fe2161

3 files changed

Lines changed: 10 additions & 2 deletions

File tree

.github/workflows/docker-publish.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ jobs:
3838
with:
3939
cosign-release: 'v2.2.4'
4040

41+
- name: Set up QEMU
42+
uses: docker/setup-qemu-action@v3
43+
4144
# Set up BuildKit Docker container builder to be able to build
4245
- name: Set up Docker Buildx
4346
uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v3.0.0
@@ -70,8 +73,7 @@ jobs:
7073
labels: ${{ steps.meta.outputs.labels }}
7174
cache-from: type=gha
7275
cache-to: type=gha,mode=max
73-
platforms: linux/arm64/v8,linux/amd64
74-
# For old raspberry pi : linux/arm/v7
76+
platforms: linux/amd64,linux/arm64,linux/arm/v7
7577

7678
- name: Sign the published Docker image
7779
if: ${{ github.event_name != 'pull_request' }}

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ The format is inspired by [Keep a Changelog](https://keepachangelog.com/en/1.1.0
1212
- Example `curl` calls for `/scrape` and `/health` endpoints.
1313
- MIT license file.
1414
- Optional API key authentication via the `API_KEY` environment variable.
15+
- Multi-architecture Docker support: `linux/amd64`, `linux/arm64`, and `linux/arm/v7`.
1516

1617
### Changed
1718

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
Minimal HTTP service to download Instagram posts (Reels or regular posts) via a JSON API, built with Flask and Instaloader and packaged as a Docker container.
44

5+
This Docker image is compatible with the following architectures:
6+
- `linux/amd64` (x86_64)
7+
- `linux/arm64` (Apple Silicon, Raspberry Pi 4/5)
8+
- `linux/arm/v7` (Raspberry Pi 3, etc.)
9+
510
## Features
611

712
- `/scrape` endpoint to download an Instagram post from its URL.

0 commit comments

Comments
 (0)