build(ocr): 加速生产镜像构建

This commit is contained in:
yml
2026-11-17 17:45:35 +08:00
parent b862804194
commit ab68cce595
+10 -2
View File
@@ -4,7 +4,11 @@
FROM debian:bookworm-slim AS build
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
RUN sed -i \
-e 's|http://deb.debian.org/debian|http://mirrors.ustc.edu.cn/debian|g' \
-e 's|http://deb.debian.org/debian-security|http://mirrors.ustc.edu.cn/debian-security|g' \
/etc/apt/sources.list.d/debian.sources \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
build-essential \
cmake \
@@ -33,7 +37,11 @@ RUN cmake -S . -B build \
FROM debian:bookworm-slim
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
RUN sed -i \
-e 's|http://deb.debian.org/debian|http://mirrors.ustc.edu.cn/debian|g' \
-e 's|http://deb.debian.org/debian-security|http://mirrors.ustc.edu.cn/debian-security|g' \
/etc/apt/sources.list.d/debian.sources \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
curl \
libstdc++6 \