You've already forked DataMate
mirror
This commit is contained in:
@@ -1,4 +1,21 @@
|
||||
FROM maven:3-eclipse-temurin-21 AS builder
|
||||
|
||||
# 配置 Maven 阿里云镜像
|
||||
RUN mkdir -p /root/.m2 && \
|
||||
echo '<?xml version="1.0" encoding="UTF-8"?>\n\
|
||||
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"\n\
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"\n\
|
||||
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">\n\
|
||||
<mirrors>\n\
|
||||
<mirror>\n\
|
||||
<id>aliyunmaven</id>\n\
|
||||
<mirrorOf>*</mirrorOf>\n\
|
||||
<name>阿里云公共仓库</name>\n\
|
||||
<url>https://maven.aliyun.com/repository/public</url>\n\
|
||||
</mirror>\n\
|
||||
</mirrors>\n\
|
||||
</settings>' > /root/.m2/settings.xml
|
||||
|
||||
COPY backend/ /opt/backend
|
||||
|
||||
RUN cd /opt/backend/services && \
|
||||
@@ -7,7 +24,9 @@ RUN cd /opt/backend/services && \
|
||||
|
||||
FROM eclipse-temurin:21-jdk
|
||||
|
||||
RUN apt-get update && \
|
||||
# 配置 apt 阿里云镜像源
|
||||
RUN sed -i 's/deb.debian.org/mirrors.aliyun.com/g' /etc/apt/sources.list.d/debian.sources && \
|
||||
apt-get update && \
|
||||
apt-get install -y vim wget curl rsync python3 python3-pip python-is-python3 dos2unix && \
|
||||
apt-get clean && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
Reference in New Issue
Block a user