From fc0728c75625081d11ae7dc998d824b285807ee1 Mon Sep 17 00:00:00 2001 From: Finn Christiansen Date: Wed, 12 Jun 2024 22:52:52 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A=20Fix=20ARM=20build?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .forgejo/workflows/ci.yaml | 3 +-- Dockerfile | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/ci.yaml b/.forgejo/workflows/ci.yaml index b1defe3..e1018e9 100644 --- a/.forgejo/workflows/ci.yaml +++ b/.forgejo/workflows/ci.yaml @@ -31,8 +31,7 @@ jobs: with: context: . push: true - # platforms: linux/amd64,linux/arm64 # ARM disabled for now: error: command 'gcc' failed: No such file or directory - platforms: linux/amd64 + platforms: linux/amd64,linux/arm64 tags: code.f2n.me/finn/matrix-bot-praying-times:latest - name: Inspect run: | diff --git a/Dockerfile b/Dockerfile index be4a230..9b596d9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,6 +3,8 @@ FROM python:3.12-alpine WORKDIR /bot +RUN apk update && apk add python3-dev gcc libc-dev + COPY requirements.txt requirements.txt RUN pip3 install -r requirements.txt