I am building a java app runnign on alpine and installing jdk11 with alpine package manager but suddenly from last night something is wrong. I haven't changed anything in my docker file so it could be something with some packages being updated?
This is my Dockerfile
FROM amd64/alpine:3.7
RUN apk update
RUN apk --no-cache add openjdk11-jdk --repository=http://dlcdn.alpinelinux.org/alpine/edge/community
ENV JAVA_HOME=/usr/lib/jvm/default-jvm
ENV PATH=$JAVA_HOME/bin:$PATH
RUN apk --no-cache add bash
COPY ./target/myapp-.jar /
EXPOSE 80
CMD ["java", "-jar", "/myapp.jar"]
It used to build the image fine but suddenly I am seeing the following error
---> Running in 324f142bbf15
fetch http://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/community/x86_64/APKINDEX.tar.gz
... //some content omitted for simplicity
(25/25) Installing openjdk11-jre (11.0.9_p11-r1)
Executing busybox-1.27.2-r11.trigger
Executing java-common-0.3-r0.trigger
sort: unrecognized option: V
BusyBox v1.27.2 (2018-06-06 09:08:44 UTC) multi-call binary.
Usage: sort [-nrugMcszbdfiokt] [-o FILE] [-k start[.offset][opts][,end[.offset][opts]] [-t CHAR] [FILE]...
Sort lines of text
-o FILE Output to FILE
-c Check whether input is sorted
-b Ignore leading blanks
-f Ignore case
-i Ignore unprintable characters
-d Dictionary order (blank or alphanumeric only)
-g General numerical sort
-M Sort month
-n Sort numbers
-t CHAR Field separator
-k N[,M] Sort by Nth field
-r Reverse sort order
-s Stable (don't sort ties alphabetically)
-u Suppress duplicate lines
-z Lines are terminated by NUL, not newline
I was not getting this error before Could anyone help resolving this, please? This causes java not being installed properly on alpine linux