Create Dockerfile-No-Jdk (#388)

* Create Dockerfile-No-Jdk
This commit is contained in:
AnJia authored and hengyunabc committed 2018-12-23 01:27:45 +08:00
1 parent 82098e6913
commit dbf6a842ab
1 file changed
+15
+15
View File
@@ -0,0 +1,15 @@
FROM alpine
ARG ARTHAS_VERSION="3.0.5"
ARG MIRROR=false
ENV MAVEN_HOST=https://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