File tree Expand file tree Collapse file tree 1 file changed +28
-3
lines changed Expand file tree Collapse file tree 1 file changed +28
-3
lines changed Original file line number Diff line number Diff line change 1- FROM eclipse-temurin:8-jdk-alpine
1+ # syntax=docker/dockerfile:1.3-labs
2+
3+ FROM maven:3-eclipse-temurin-8-alpine
24
35# copy arthas
46COPY --from=hengyunabc/arthas:latest /opt/arthas /opt/arthas
57
68RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
79RUN apk add wget unzip tcpdump ngrep iproute2-ss bind-tools
810
11+ COPY <<EOF /root/.m2/settings.xml
12+ <?xml version=\" 1.0\" ?>
13+ <settings>
14+ <mirrors>
15+ <mirror>
16+ <id>alimaven</id>
17+ <name>aliyun maven</name>
18+ <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
19+ <mirrorOf>central</mirrorOf>
20+ </mirror>
21+ <mirror>
22+ <id>maven-default-http-blocker</id>
23+ <mirrorOf>!*</mirrorOf>
24+ <url>http://0.0.0.0/</url>
25+ </mirror>
26+ </mirrors>
27+ </settings>
28+ EOF
29+
930WORKDIR /app
10- COPY /target/A-1.0.0.jar /app
31+
32+ COPY ./ ./
33+
34+ RUN --mount=type=cache,target=/root/.m2/repository/ \
35+ mvn clean package
1136
1237EXPOSE 20001
1338ENTRYPOINT ["sh" , "-c" ]
14- CMD ["java -jar /app/A-1.0.0.jar" ]
39+ CMD ["java -jar /app/target/ A-1.0.0.jar" ]
You can’t perform that action at this time.
0 commit comments