From 3b7ee64d37ef3abb7435cd2008126de106e8bc65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antti=20Ellil=C3=A4?= Date: Mon, 15 May 2023 18:01:44 +0300 Subject: [PATCH] feat: arm64 support for docker image (#432) --- .github/workflows/build.yml | 1 + Dockerfile | 5 +---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c2256157..d420fa84 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -75,6 +75,7 @@ jobs: uses: docker/build-push-action@v3 with: context: . + platforms: linux/amd64,linux/arm64 tags: ${{ steps.metadata.outputs.tags }} labels: ${{ steps.metadata.outputs.labels }} push: ${{ github.event_name != 'pull_request' }} diff --git a/Dockerfile b/Dockerfile index 4f1cd863..5ba81412 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,7 @@ -FROM eclipse-temurin:17-jre-alpine +FROM eclipse-temurin:17-jre-jammy WORKDIR /app -RUN apk update && \ - apk upgrade - COPY build/release/*-cli.jar cli.jar ENTRYPOINT [ "java", "-jar", "cli.jar" ]