mirror of
https://gitee.com/arthas/arthas.git
synced 2024-11-29 10:47:57 +08:00
dec5c1cdd5
Some checks failed
CodeQL / Analyze (java) (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
JavaCI / ubuntu_build (11) (push) Has been cancelled
JavaCI / ubuntu_build (17) (push) Has been cancelled
JavaCI / ubuntu_build (19) (push) Has been cancelled
JavaCI / ubuntu_build (8) (push) Has been cancelled
JavaCI / windows_build (11) (push) Has been cancelled
JavaCI / windows_build (8) (push) Has been cancelled
JavaCI / macos_build (11, macos-14) (push) Has been cancelled
JavaCI / macos_build (11, macos-latest) (push) Has been cancelled
JavaCI / macos_build (8, macos-14) (push) Has been cancelled
JavaCI / macos_build (8, macos-latest) (push) Has been cancelled
20 lines
675 B
Plaintext
20 lines
675 B
Plaintext
# Stage 1: Build
|
|
FROM openjdk:8-jdk-alpine AS builder
|
|
|
|
ARG ARTHAS_VERSION="4.0.4"
|
|
ARG MIRROR=false
|
|
ENV MAVEN_HOST=https://repo1.maven.org/maven2 \
|
|
MIRROR_MAVEN_HOST=https://maven.aliyun.com/repository/public
|
|
|
|
# if use mirror change to aliyun mirror site
|
|
RUN if [ "$MIRROR" = "true" ]; 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
|
|
|
|
# Stage 2: Final
|
|
FROM alpine
|
|
|
|
COPY --from=builder /opt/arthas /opt/arthas |