Skip to content

Commit c24c831

Browse files
committed
feature: update Dockerfile for improved package source mirrors and add mineru-npu to build targets
1 parent 080f9b6 commit c24c831

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ endef
155155
# ========== Build Targets ==========
156156

157157
# Valid build targets
158-
VALID_BUILD_TARGETS := backend database frontend runtime backend-python deer-flow mineru
158+
VALID_BUILD_TARGETS := backend database frontend runtime backend-python deer-flow mineru mineru-npu
159159

160160
# Generic docker build target with service name as parameter
161161
# Automatically prefixes image names with "datamate-" unless it's deer-flow

scripts/images/backend/Dockerfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
FROM maven:3-eclipse-temurin-8 AS datax-builder
22

3-
RUN apt-get update && \
3+
RUN sed -i "s@http://.*archive.ubuntu.com@http://mirrors.huaweicloud.com@g" /etc/apt/sources.list && \
4+
sed -i "s@http://.*security.ubuntu.com@http://mirrors.huaweicloud.com@g" /etc/apt/sources.list && \
5+
apt-get update && \
46
apt-get install -y git && \
57
git clone https://github.com/alibaba/DataX.git
68

@@ -21,7 +23,9 @@ RUN cd /opt/backend && \
2123

2224
FROM eclipse-temurin:21-jdk
2325

24-
RUN apt-get update && \
26+
RUN sed -i "s@http://.*archive.ubuntu.com@http://mirrors.huaweicloud.com@g" /etc/apt/sources.list && \
27+
sed -i "s@http://.*security.ubuntu.com@http://mirrors.huaweicloud.com@g" /etc/apt/sources.list && \
28+
apt-get update && \
2529
apt-get install -y vim wget curl nfs-common rsync python3 python3-pip python-is-python3 dos2unix && \
2630
apt-get clean && \
2731
rm -rf /var/lib/apt/lists/*

0 commit comments

Comments
 (0)