Merge pull request #190 from gheorghiuradu/feature/multi-platform-docker-support

Add multi platform docker support
This commit is contained in:
hrj 2023-01-14 22:44:28 +05:30 committed by GitHub
commit bfa2cfdc88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 4 deletions

View File

@ -54,6 +54,10 @@ jobs:
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: |
linux/amd64
linux/arm64
linux/arm/v7
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}

View File

@ -1,9 +1,10 @@
FROM adoptopenjdk/openjdk16:alpine AS base-builder
FROM adoptopenjdk/openjdk16:latest AS base-builder
ARG SBT_VERSION=1.7.1
RUN apk add --no-cache bash
ENV JAVA_HOME="/usr/lib/jvm/default-jvm/"
ENV PATH=$PATH:${JAVA_HOME}/bin
RUN \
apt update && \
apt install -y wget && \
wget -O sbt-$SBT_VERSION.tgz https://github.com/sbt/sbt/releases/download/v$SBT_VERSION/sbt-$SBT_VERSION.tgz && \
tar -xzvf sbt-$SBT_VERSION.tgz && \
rm sbt-$SBT_VERSION.tgz
@ -22,9 +23,9 @@ FROM sbt-builder as builder
COPY src/ src/
RUN sbt assembly
FROM adoptopenjdk/openjdk16:alpine-jre AS base-core
FROM adoptopenjdk/openjdk16:jre AS base-core
ENV JAVA_HOME="/usr/lib/jvm/default-jvm/"
RUN apk add --update ttf-dejavu
RUN apt update && apt install -y ttf-dejavu
ENV PATH=$PATH:${JAVA_HOME}/bin