Skip to content

Commit e23d300

Browse files
stintelKoenkk
andauthored
feat: Docker: RISC-V support (#22824)
Co-authored-by: Koenkk <[email protected]> Co-authored-by: Koen Kanters <[email protected]>
1 parent 32c341c commit e23d300

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ jobs:
7777
with:
7878
context: .
7979
file: docker/Dockerfile
80-
platforms: linux/arm64/v8,linux/amd64,linux/arm/v6,linux/arm/v7
80+
platforms: linux/arm64/v8,linux/amd64,linux/arm/v6,linux/arm/v7,linux/riscv64
8181
tags: koenkk/zigbee2mqtt:latest-dev,ghcr.io/koenkk/zigbee2mqtt:latest-dev
8282
push: true
8383
build-args: |
@@ -92,7 +92,7 @@ jobs:
9292
context: .
9393
file: docker/Dockerfile
9494
provenance: false
95-
platforms: linux/arm64/v8,linux/amd64,linux/arm/v6,linux/arm/v7
95+
platforms: linux/arm64/v8,linux/amd64,linux/arm/v6,linux/arm/v7,linux/riscv64
9696
tags: koenkk/zigbee2mqtt:latest,ghcr.io/koenkk/zigbee2mqtt:latest,koenkk/zigbee2mqtt:${{ github.ref_name }},ghcr.io/koenkk/zigbee2mqtt:${{ github.ref_name }}
9797
push: true
9898
build-args: |

docker/Dockerfile

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ ARG TARGETPLATFORM
55
FROM alpine:3.18.4 AS arm-alpine
66
FROM alpine:3.21 AS arm64-alpine
77
FROM alpine:3.21 AS amd64-alpine
8+
FROM alpine:3.21 as riscv64-alpine
89

910
FROM ${TARGETARCH}-alpine AS base
1011

@@ -16,6 +17,7 @@ RUN apk add --no-cache tzdata eudev tini nodejs
1617
FROM base AS deps
1718

1819
COPY package.json pnpm-lock.yaml ./
20+
# Make and such are needed to compile serialport for riscv64
1921
RUN apk add make gcc g++ python3 linux-headers npm && \
2022
npm install -g pnpm && \
2123
pnpm install --frozen-lockfile --no-optional

0 commit comments

Comments
 (0)