File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 11# syntax=docker/dockerfile:1.3-labs
22
3- FROM maven:3-eclipse-temurin-8-alpine
4-
5- # copy arthas
6- COPY --from=hengyunabc/arthas:latest /opt/arthas /opt/arthas
3+ FROM maven:3-eclipse-temurin-8-alpine as build
74
85RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
96RUN apk add wget unzip tcpdump ngrep iproute2-ss bind-tools
@@ -29,6 +26,13 @@ COPY ./ ./
2926RUN --mount=type=cache,target=/root/.m2/repository/ \
3027 mvn clean package --batch-mode
3128
29+ FROM dragonwell-registry.cn-hangzhou.cr.aliyuncs.com/dragonwell/dragonwell:8-extended-ga-centos
30+
31+ # copy arthas
32+ COPY --from=hengyunabc/arthas:latest /opt/arthas /opt/arthas
33+
34+ COPY --from=build /app/target/B.jar /app/target/B.jar
35+
3236EXPOSE 20002
3337ENTRYPOINT ["sh" , "-c" ]
3438CMD ["java -jar /app/target/B.jar" ]
You can’t perform that action at this time.
0 commit comments