From fe3e8809fac4b244205fad1f7ef3b942c4c29b09 Mon Sep 17 00:00:00 2001 From: DanailDR Date: Thu, 8 Oct 2026 08:53:51 +0300 Subject: [PATCH] Publish ARMv7 multi-arch Docker image Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- README.md | 9 +++++---- deployment/Dockerfile | 2 +- deployment/scripts/docker-build-and-push.sh | 1 - 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 0bcd282..54d6f69 100644 --- a/README.md +++ b/README.md @@ -203,10 +203,10 @@ Pre-built multi-arch images available: ```bash docker pull danaildr/webssh:latest -docker pull danaildr/webssh:0.4.0 +docker pull danaildr/webssh:0.5.1 ``` -Supported architectures: `linux/amd64`, `linux/arm64` +Supported architectures: `linux/amd64`, `linux/arm64`, `linux/arm/v7` ## Security Notes @@ -228,10 +228,11 @@ docker-compose up -d --build ### Build for Docker Hub (Multi-arch) ```bash -./docker-build-and-push.sh --build +docker login +./deployment/scripts/docker-build-and-push.sh --build ``` -This builds and pushes both `linux/amd64` and `linux/arm64` images with tags `latest` and version tag. +This builds and pushes `linux/amd64`, `linux/arm64`, and `linux/arm/v7` images with tags `latest` and the configured version tag. ### Version Management diff --git a/deployment/Dockerfile b/deployment/Dockerfile index fd79693..b15e8ca 100644 --- a/deployment/Dockerfile +++ b/deployment/Dockerfile @@ -22,7 +22,7 @@ ENV PATH="/opt/venv/bin:$PATH" COPY requirements.txt /tmp/ COPY src/ /tmp/src/ # Prefer prebuilt wheels when available to avoid building larger compiled artifacts -RUN pip install --no-cache-dir --prefer-binary -r /tmp/requirements.txt +RUN SODIUM_INSTALL=system python -m pip install --no-cache-dir --prefer-binary -r /tmp/requirements.txt # Strip compiled extensions and remove tests/pycache in venv to reduce size RUN set -eux; \ diff --git a/deployment/scripts/docker-build-and-push.sh b/deployment/scripts/docker-build-and-push.sh index 8b5bc9e..4f11c56 100755 --- a/deployment/scripts/docker-build-and-push.sh +++ b/deployment/scripts/docker-build-and-push.sh @@ -52,7 +52,6 @@ build_and_push() { echo -e "${GREEN}✅ Docker build & push successful${NC}" echo "" - echo -e "${YELLOW}⚠️ Don't forget to create a GitHub release!${NC}" } # Function to show usage