mirror of
https://gitee.com/arthas/arthas.git
synced 2024-11-30 03:07:37 +08:00
16 lines
543 B
Plaintext
16 lines
543 B
Plaintext
FROM alpine
|
|
|
|
ARG ARTHAS_VERSION="3.1.7"
|
|
ARG MIRROR=false
|
|
|
|
ENV MAVEN_HOST=http://repo1.maven.org/maven2 \
|
|
MIRROR_MAVEN_HOST=http://maven.aliyun.com/repository/public
|
|
|
|
# if use mirror change to aliyun mirror site
|
|
RUN if $MIRROR; then MAVEN_HOST=${MIRROR_MAVEN_HOST} ; fi && \
|
|
# download & install arthas
|
|
wget -qO /tmp/arthas.zip "${MAVEN_HOST}/com/taobao/arthas/arthas-packaging/${ARTHAS_VERSION}/arthas-packaging-${ARTHAS_VERSION}-bin.zip" && \
|
|
mkdir -p /opt/arthas && \
|
|
unzip /tmp/arthas.zip -d /opt/arthas && \
|
|
rm /tmp/arthas.zip
|