From ce13b5fa978d8bb395acfad2ca41387bad7c71ab Mon Sep 17 00:00:00 2001 From: Erik van Leeuwen Date: Thu, 23 Mar 2023 21:59:43 +0100 Subject: [PATCH] #57 Add support for linux/arm/v7 --- Dockerfile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 267bb58..734feff 100644 --- a/Dockerfile +++ b/Dockerfile @@ -53,12 +53,19 @@ WORKDIR /languagetool # downloading the matching version of `libhunspell`. The URL may need to change. FROM alpine:3.17.3 +ARG TARGETPLATFORM + RUN apk add --no-cache \ bash \ curl \ libc6-compat \ - libstdc++ \ - openjdk11-jre-headless + libstdc++ + +RUN if [ "$TARGETPLATFORM" = "linux/arm/v7" ] ; then \ + apk add --no-cache openjdk8-jre; \ + else \ + apk add --no-cache openjdk11-jre-headless; \ + fi # https://github.com/Erikvl87/docker-languagetool/issues/60 RUN ln -s /lib64/ld-linux-x86-64.so.2 /lib/ld-linux-x86-64.so.2