From 3b3776faf882fc7013bdaa804d6c5972cbca0406 Mon Sep 17 00:00:00 2001 From: unitexe Date: Fri, 27 Feb 2026 16:16:05 -0600 Subject: Build container for armv7 platform Switch from alpine to debian slim bookworm since rust alpine doesn't have a image for armv7 by default but debian slim bookworm does. --- .github/workflows/ci.yml | 2 +- Containerfile | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 20043a4..d7cafd7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -54,7 +54,7 @@ jobs: with: image: ${{ env.IMAGE_NAME }} tags: ${{ steps.tags.outputs.tags }} - archs: amd64, arm64 + archs: amd64, arm64, arm/v7 containerfiles: | ./Containerfile labels: | diff --git a/Containerfile b/Containerfile index 4c8852b..7e808b2 100644 --- a/Containerfile +++ b/Containerfile @@ -4,9 +4,9 @@ # Build stage # -FROM rust:1.91-alpine3.23 AS builder +FROM rust:1.91-slim-bookworm AS builder -RUN apk add --no-cache musl-dev protobuf-dev +RUN apt-get update && apt-get install -y pkg-config protobuf-compiler && rm -rf /var/lib/apt/lists/* WORKDIR /app @@ -24,9 +24,9 @@ RUN cargo build --release # Run stage # -FROM alpine:latest +FROM debian:bookworm-slim -RUN apk add --no-cache libgcc +RUN apt-get update && apt-get install -y libgcc-s1 && rm -rf /var/lib/apt/lists/* WORKDIR /app -- cgit v1.2.3