Skip to content

Commit 1999a4f

Browse files
authored
Add support for ARM
1 parent 17ade55 commit 1999a4f

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ jobs:
3737
# Workaround: https://github.com/docker/build-push-action/issues/461
3838
- name: Setup Docker buildx
3939
uses: docker/[email protected]
40+
- uses: docker/setup-qemu-action@v2
4041

4142
# Login against a Docker registry except on PR
4243
# https://github.com/docker/login-action
@@ -63,6 +64,7 @@ jobs:
6364
uses: docker/[email protected]
6465
with:
6566
context: .
67+
platforms: linux/amd64,linux/arm64
6668
push: ${{ github.event_name != 'pull_request' }}
6769
tags: ${{ steps.meta.outputs.tags }}
6870
labels: ${{ steps.meta.outputs.labels }}

Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM alpine AS curl
1+
FROM --platform=$TARGETOS/$TARGETARCH alpine AS curl
22

33
# Install build dependencies
44
RUN apk add openssl-dev make g++ curl
@@ -15,7 +15,10 @@ RUN ./configure --with-openssl --enable-websockets
1515
# Compile
1616
RUN make && make install
1717

18-
FROM alpine
18+
FROM --platform=$TARGETOS/$TARGETARCH alpine
19+
20+
LABEL org.opencontainers.image.source="https://github.com/kordlib/docker"
21+
LABEL org.opencontainers.image.licenses=MIT
1922

2023
# See https://youtrack.jetbrains.com/issue/KT-38876/#focus=Comments-27-4805258.0-0
2124
RUN apk add gcompat

0 commit comments

Comments
 (0)