Open-source LLM knowledge platform: turn raw documents into a queryable RAG, an autonomous reasoning agent, and a self-maintaining Wiki.
Go agentagenticaichatbotdsh-pluginembeddingsevaluationgenerative-aigolangknowledge-basellmmulti-tenantollamaopenaiquestion-answeringragrerankingsemantic-searchvector-searchwiki
feat: Update Dockerfile to support customizable APK mirror
wizardchenffd5cd28816e
diff --git a/docker/Dockerfile.app b/docker/Dockerfile.appindex 52a444b36..58c5d2538 100644--- a/docker/Dockerfile.app+++ b/docker/Dockerfile.app@@ -7,6 +7,7 @@ WORKDIR /appARG GOPRIVATE_ARGARG GOPROXY_ARGARG GOSUMDB_ARG=off+ARG APK_MIRROR_ARG="mirrors.tencent.com"# 设置Go环境变量ENV GOPRIVATE=${GOPRIVATE_ARG}@@ -14,7 +15,9 @@ ENV GOPROXY=${GOPROXY_ARG}ENV GOSUMDB=${GOSUMDB_ARG}# Install dependencies-RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/repositories && \+RUN if [ -n "$APK_MIRROR_ARG" ]; then \+ sed -i "[email protected]@${APK_MIRROR_ARG}@g" /etc/apk/repositories; \+ fi && \apk add --no-cache git build-base# Install migrate tool@@ -46,13 +49,18 @@ FROM alpine:3.17WORKDIR /app-# Install runtime dependencies-RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/repositories && \+ARG APK_MIRROR_ARG="mirrors.tencent.com"++RUN if [ -n "$APK_MIRROR_ARG" ]; then \+ sed -i "[email protected]@${APK_MIRROR_ARG}@g" /etc/apk/repositories; \+ fi && \apk update && apk upgrade && \apk add --no-cache build-base postgresql-client mysql-client ca-certificates tzdata sed curl bash vim wget \- nodejs npm python3 py3-pip && \- pip3 install --no-cache-dir pipx && \- pipx install uvx+ nodejs npm python3 py3-pip python3-dev libffi-dev openssl-dev cargo && \+ python3 -m pip install --upgrade pip setuptools wheel && \+ # 使用官方安装脚本安装 uvx+ curl -LsSf https://astral.sh/uv/install.sh | sh && \+ ln -sf /root/.cargo/bin/uvx /usr/local/bin/uvx# Create a non-root user and switch to itRUN mkdir -p /data/files && \