Skip to content

Commit 454ab98

Browse files
committed
update Dockerfile
1 parent 6fc1f3a commit 454ab98

File tree

5 files changed

+10
-23
lines changed

5 files changed

+10
-23
lines changed

mse-simple-demo/A/Dockerfile

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
# syntax=docker/dockerfile:1.4
22

3-
FROM maven:3-eclipse-temurin-8-alpine as build
3+
FROM maven:3-eclipse-temurin-8 as build
44

55
# copy arthas
66
COPY --from=hengyunabc/arthas:latest /opt/arthas /opt/arthas
77

8-
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
9-
RUN apk add wget unzip tcpdump ngrep iproute2-ss bind-tools
10-
118
COPY <<EOF /root/.m2/settings.xml
129
<?xml version=\"1.0\"?>
1310
<settings>
@@ -30,7 +27,7 @@ RUN --mount=type=cache,target=/root/.m2/repository/ \
3027
mvn clean package --batch-mode
3128

3229

33-
FROM eclipse-temurin:8-jdk-alpine
30+
FROM eclipse-temurin:8-jdk
3431

3532
# copy arthas
3633
COPY --from=hengyunabc/arthas:latest /opt/arthas /opt/arthas

mse-simple-demo/B/Dockerfile

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
# syntax=docker/dockerfile:1.4
22

3-
FROM maven:3-eclipse-temurin-8-alpine as build
4-
5-
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
6-
RUN apk add wget unzip tcpdump ngrep iproute2-ss bind-tools
3+
FROM maven:3-eclipse-temurin-8 as build
74

85
COPY <<EOF /root/.m2/settings.xml
96
<?xml version=\"1.0\"?>
@@ -26,7 +23,7 @@ COPY ./ ./
2623
RUN --mount=type=cache,target=/root/.m2/repository/ \
2724
mvn clean package --batch-mode
2825

29-
FROM eclipse-temurin:8-jdk-alpine
26+
FROM eclipse-temurin:8-jdk
3027

3128
# copy arthas
3229
COPY --from=hengyunabc/arthas:latest /opt/arthas /opt/arthas

mse-simple-demo/C/Dockerfile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# syntax=docker/dockerfile:1.4
22

3-
FROM maven:3-eclipse-temurin-8-alpine as build
4-
5-
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
3+
FROM maven:3-eclipse-temurin-8 as build
64

75
COPY <<EOF /root/.m2/settings.xml
86
<?xml version=\"1.0\"?>
@@ -25,7 +23,7 @@ COPY ./ ./
2523
RUN --mount=type=cache,target=/root/.m2/repository/ \
2624
mvn clean package --batch-mode
2725

28-
FROM eclipse-temurin:8-jdk-alpine
26+
FROM eclipse-temurin:8-jdk
2927

3028
# copy arthas
3129
COPY --from=hengyunabc/arthas:latest /opt/arthas /opt/arthas

mse-simple-demo/SpringCloudGateway/Dockerfile

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
# syntax=docker/dockerfile:1.4
2-
FROM maven:3-eclipse-temurin-8-alpine as build
2+
FROM maven:3-eclipse-temurin-8 as build
33

44
# copy arthas
55
COPY --from=hengyunabc/arthas:latest /opt/arthas /opt/arthas
66

7-
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
8-
RUN apk add wget unzip tcpdump ngrep iproute2-ss bind-tools
9-
107
COPY <<EOF /root/.m2/settings.xml
118
<?xml version=\"1.0\"?>
129
<settings>
@@ -29,7 +26,7 @@ RUN --mount=type=cache,target=/root/.m2/repository/ \
2926
mvn clean package --batch-mode
3027

3128

32-
FROM eclipse-temurin:8-jdk-alpine
29+
FROM eclipse-temurin:8-jdk
3330

3431

3532
# copy arthas

mse-simple-demo/ZuulGateway/Dockerfile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# syntax=docker/dockerfile:1.4
22

3-
FROM maven:3-eclipse-temurin-8-alpine as build
4-
5-
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
3+
FROM maven:3-eclipse-temurin-8 as build
64

75
COPY <<EOF /root/.m2/settings.xml
86
<?xml version=\"1.0\"?>
@@ -25,7 +23,7 @@ COPY ./ ./
2523
RUN --mount=type=cache,target=/root/.m2/repository/ \
2624
mvn clean package --batch-mode
2725

28-
FROM eclipse-temurin:8-jdk-alpine
26+
FROM eclipse-temurin:8-jdk
2927

3028
# copy arthas
3129
COPY --from=hengyunabc/arthas:latest /opt/arthas /opt/arthas

0 commit comments

Comments
 (0)