Skip to content

Commit

Permalink
Add support for ARM
Browse files Browse the repository at this point in the history
  • Loading branch information
DRSchlaubi authored Jan 26, 2024
1 parent 17ade55 commit 30a8fe9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ jobs:
# Workaround: https://github.com/docker/build-push-action/issues/461
- name: Setup Docker buildx
uses: docker/[email protected]
- uses: docker/setup-qemu-action@v2

# Login against a Docker registry except on PR
# https://github.com/docker/login-action
Expand All @@ -63,6 +64,7 @@ jobs:
uses: docker/[email protected]
with:
context: .
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
Expand Down
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine AS curl
FROM alpine --platform=$BUILDPLATFORM AS curl

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

FROM alpine
FROM alpine --platform=$BUILDPLATFORM

LABEL org.opencontainers.image.source="https://github.com/kordlib/docker"
LABEL org.opencontainers.image.licenses=MIT

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

0 comments on commit 30a8fe9

Please sign in to comment.