diff --git a/deploy/ocr/Dockerfile b/deploy/ocr/Dockerfile index f50ef643..1bc07629 100644 --- a/deploy/ocr/Dockerfile +++ b/deploy/ocr/Dockerfile @@ -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 \