diff --git a/Dockerfile b/Dockerfile index 957bb74a70..ee19086b3a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -55,6 +55,16 @@ RUN --mount=type=cache,id=ragflow_apt,target=/var/cache/apt,sharing=locked \ apt install -y fonts-freefont-ttf fonts-noto-cjk && \ apt install -y postgresql-client +# Download resource from GitHub to /usr/share/infinity +RUN mkdir -p /usr/share/infinity/resource && \ + if [ "$NEED_MIRROR" == "1" ]; then \ + git clone --depth 1 --single-branch https://gitee.com/infiniflow/resource /tmp/resource; \ + else \ + git clone --depth 1 --single-branch https://github.com/infiniflow/resource.git /tmp/resource; \ + fi && \ + cp -r /tmp/resource/* /usr/share/infinity/resource && \ + rm -rf /tmp/resource + ARG NGINX_VERSION=1.29.5-1~noble RUN --mount=type=cache,id=ragflow_apt,target=/var/cache/apt,sharing=locked \ mkdir -p /etc/apt/keyrings && \