File tree 1 file changed +8
-4
lines changed
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 1
1
# syntax=docker/dockerfile:1.3-labs
2
2
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
7
4
8
5
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
9
6
RUN apk add wget unzip tcpdump ngrep iproute2-ss bind-tools
@@ -29,6 +26,13 @@ COPY ./ ./
29
26
RUN --mount=type=cache,target=/root/.m2/repository/ \
30
27
mvn clean package --batch-mode
31
28
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
+
32
36
EXPOSE 20002
33
37
ENTRYPOINT ["sh" , "-c" ]
34
38
CMD ["java -jar /app/target/B.jar" ]
You can’t perform that action at this time.
0 commit comments