mirror of
https://github.com/suyiiyii/SIMS.git
synced 2025-06-03 12:56:10 +08:00
删除maven的镜像配置
This commit is contained in:
parent
59e00bc677
commit
0aac2243e9
20
Dockerfile
20
Dockerfile
@ -2,26 +2,6 @@ FROM maven:3.9-eclipse-temurin-17-alpine AS build
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# 给 maven 配置阿里云镜像
|
||||
RUN --mount=type=cache,target=/root/.m2 \
|
||||
mkdir -p /root/.m2 \
|
||||
&& echo "<settings>\
|
||||
<mirrors>\
|
||||
<mirror>\
|
||||
<id>gdutnic</id>\
|
||||
<name>gdutnic maven</name>\
|
||||
<url>http://mirrors.gdut.edu.cn/nexus/repository/maven-public/</url>\
|
||||
<mirrorOf>central</mirrorOf>\
|
||||
</mirror>\
|
||||
<mirror>\
|
||||
<id>alimaven</id>\
|
||||
<mirrorOf>central</mirrorOf>\
|
||||
<name>aliyun maven</name>\
|
||||
<url>https://maven.aliyun.com/repository/public</url>\
|
||||
</mirror>\
|
||||
</mirrors>\
|
||||
</settings>" > /root/.m2/settings.xml
|
||||
|
||||
COPY pom.xml ./pom.xml
|
||||
|
||||
COPY src ./src
|
||||
|
Loading…
x
Reference in New Issue
Block a user