build(ocr): 加速生产镜像构建
This commit is contained in:
+10
-2
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user