Skip to content

Commit 8c6bf74

Browse files
committed
feat: adds docker support back for linux/arm/v8 and linux/arm/v7
1 parent c1fc966 commit 8c6bf74

3 files changed

Lines changed: 22 additions & 4 deletions

File tree

.github/workflows/docker-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,4 @@ jobs:
5555
push: ${{ github.event_name != 'pull_request' }}
5656
tags: ${{ steps.meta.outputs.tags }}
5757
labels: ${{ steps.meta.outputs.labels }}
58-
platforms: linux/amd64,linux/arm64
58+
platforms: linux/amd64,linux/arm64,linux/arm/v8,linux/arm/v7

dockerfile

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,27 @@ FROM python:3.10.12-slim-bookworm
33
WORKDIR /app
44
COPY requirements.txt .
55

6-
RUN pip install --no-cache-dir -r requirements.txt
6+
# Install common dependencies
7+
RUN pip install $(grep -v "fuse\|git+" requirements.txt)
8+
9+
# Install build dependencies
10+
RUN apt-get update && \
11+
apt-get install -y git pkg-config libfuse-dev gcc make
12+
13+
# Architecture-specific installations
14+
ARG TARGETPLATFORM
15+
RUN echo "Building for $TARGETPLATFORM" && \
16+
case "$TARGETPLATFORM" in \
17+
"linux/amd64"|"linux/arm64") \
18+
pip install fuse-python \
19+
;; \
20+
"linux/arm/v7"|"linux/arm/v8") \
21+
pip install git+https://github.com/libfuse/python-fuse \
22+
;; \
23+
*) \
24+
echo "Unsupported platform: $TARGETPLATFORM" && exit 1 \
25+
;; \
26+
esac
727

828
COPY . .
929

requirements.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,5 @@ tinydb
33
httpx
44
python-dotenv
55
parse-torrent-title
6-
# do not install on windows or macOS
76
fuse-python; sys_platform != "win32" and sys_platform != "darwin"
8-
# for macOS
97
git+https://github.com/libfuse/python-fuse; sys_platform == "darwin"

0 commit comments

Comments
 (0)