|
|
|
@ -9,7 +9,7 @@ ENV MAVEN_HOST=http://repo1.maven.org/maven2 \
|
|
|
|
|
MIRROR_ALPINE_HOST=mirrors.aliyun.com
|
|
|
|
|
|
|
|
|
|
# if use mirror change to aliyun mirror site
|
|
|
|
|
RUN if [[ "$MIRROR" =~ ^(true|y|yes|1)$ ]]; then MAVEN_HOST=${MIRROR_MAVEN_HOST} ;ALPINE_HOST=${MIRROR_ALPINE_HOST} ; sed -i "s/dl-cdn.alpinelinux.org/${ALPINE_HOST}/g" /etc/apk/repositories ; fi && \
|
|
|
|
|
RUN if [ "x$MIRROR" = "xtrue" ]; then MAVEN_HOST=${MIRROR_MAVEN_HOST} ;ALPINE_HOST=${MIRROR_ALPINE_HOST} ; sed -i "s/dl-cdn.alpinelinux.org/${ALPINE_HOST}/g" /etc/apk/repositories ; fi && \
|
|
|
|
|
# https://github.com/docker-library/openjdk/issues/76
|
|
|
|
|
apk add --no-cache tini && \
|
|
|
|
|
# download & install arthas
|
|
|
|
|