Skip to content

Commit

Permalink
#57 Add support for linux/arm/v7
Browse files Browse the repository at this point in the history
  • Loading branch information
Erikvl87 committed Apr 3, 2023
1 parent 04d4ff0 commit ce13b5f
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ce13b5f

Please sign in to comment.