mirror of https://github.com/alibaba/arthas.git
update Dockerfile-No-Jdk
parent
bb1c4fabb7
commit
03a9f01ece
@ -1,15 +1,20 @@
|
|||||||
FROM alpine
|
# Stage 1: Build
|
||||||
|
FROM openjdk:8-jdk-alpine AS builder
|
||||||
|
|
||||||
ARG ARTHAS_VERSION="3.7.3"
|
ARG ARTHAS_VERSION="3.7.3"
|
||||||
ARG MIRROR=false
|
ARG MIRROR=false
|
||||||
|
|
||||||
ENV MAVEN_HOST=https://repo1.maven.org/maven2 \
|
ENV MAVEN_HOST=https://repo1.maven.org/maven2 \
|
||||||
MIRROR_MAVEN_HOST=https://maven.aliyun.com/repository/public
|
MIRROR_MAVEN_HOST=https://maven.aliyun.com/repository/public
|
||||||
|
|
||||||
# if use mirror change to aliyun mirror site
|
# if use mirror change to aliyun mirror site
|
||||||
RUN if $MIRROR; then MAVEN_HOST=${MIRROR_MAVEN_HOST} ; fi && \
|
RUN if [ "$MIRROR" = "true" ]; then MAVEN_HOST=${MIRROR_MAVEN_HOST} ; fi && \
|
||||||
# download & install arthas
|
# download & install arthas
|
||||||
wget -qO /tmp/arthas.zip "${MAVEN_HOST}/com/taobao/arthas/arthas-packaging/${ARTHAS_VERSION}/arthas-packaging-${ARTHAS_VERSION}-bin.zip" && \
|
wget -qO /tmp/arthas.zip "${MAVEN_HOST}/com/taobao/arthas/arthas-packaging/${ARTHAS_VERSION}/arthas-packaging-${ARTHAS_VERSION}-bin.zip" && \
|
||||||
mkdir -p /opt/arthas && \
|
mkdir -p /opt/arthas && \
|
||||||
unzip /tmp/arthas.zip -d /opt/arthas && \
|
unzip /tmp/arthas.zip -d /opt/arthas && \
|
||||||
rm /tmp/arthas.zip
|
rm /tmp/arthas.zip
|
||||||
|
|
||||||
|
# Stage 2: Final
|
||||||
|
FROM alpine
|
||||||
|
|
||||||
|
COPY --from=builder /opt/arthas /opt/arthas
|
Loading…
Reference in New Issue