Skip to content

Commit de5977c

Browse files
committed
update mse-simple-demo/B/Dockerfile
1 parent f6d8bca commit de5977c

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

mse-simple-demo/B/Dockerfile

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
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

85
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
96
RUN apk add wget unzip tcpdump ngrep iproute2-ss bind-tools
@@ -29,6 +26,13 @@ COPY ./ ./
2926
RUN --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+
3236
EXPOSE 20002
3337
ENTRYPOINT ["sh", "-c"]
3438
CMD ["java -jar /app/target/B.jar"]

0 commit comments

Comments
 (0)