Use openjdk8 on alpine for arm64 and arm/v7

This commit is contained in:
eikek
2022-03-04 21:23:29 +01:00
parent 88c30e1824
commit a6759a4f70
3 changed files with 7 additions and 7 deletions

View File

@ -5,10 +5,9 @@ ARG joex_url=
ARG UNO_URL=https://raw.githubusercontent.com/unoconv/unoconv/0.9.0/unoconv
ARG TARGETPLATFORM
ENV JAVA_OPTS="-Xmx1536M"
RUN JDKPKG="openjdk11"; \
if [ "$TARGETPLATFORM" = "linux/arm/v7" ]; then JDKPKG="openjdk8"; fi; \
RUN JDKPKG="openjdk11-jre"; \
if [[ $TARGETPLATFORM = linux/arm* ]]; then JDKPKG="openjdk8-jre"; fi; \
apk update && \
apk add --no-cache $JDKPKG \
tzdata \
bash \