add dockerfile_ci for workflow and restore the single dockerfile (#18606)

add dockerfile_ci for workflow and restore the single dockerfile and
update it
This commit is contained in:
maoyifeng
2026-08-21 14:42:16 +08:00
committed by GitHub
parent f44436a549
commit 1f7be6398e
4 changed files with 321 additions and 23 deletions

View File

@@ -199,7 +199,7 @@ jobs:
while IFS= read -r file; do
case "$file" in
# Docker, test, SDK, and workflow changes can alter either server path.
Dockerfile|docker/**|.github/workflows/**|sdk/**)
Dockerfile|Dockerfile_ci|docker/**|.github/workflows/**|sdk/**)
has_go=true
has_python=true
;;
@@ -396,7 +396,7 @@ jobs:
flock -w 10800 9 || { echo "Timed out waiting for the shared Docker build slot" >&2; exit 1; }
echo "Acquired Docker build slot for ${DOC_ENGINE}/${API_PROXY_SCHEME}"
##sudo docker pull ubuntu:24.04
sudo DOCKER_BUILDKIT=1 docker build --build-arg NEED_MIRROR=1 --build-arg HTTPS_PROXY=${HTTPS_PROXY} --build-arg HTTP_PROXY=${HTTP_PROXY} --secret id=gitee_token,src=${GITEE_TOKEN_FILE} -f Dockerfile -t ${RAGFLOW_IMAGE} .
sudo DOCKER_BUILDKIT=1 docker build --build-arg NEED_MIRROR=1 --build-arg HTTPS_PROXY=${HTTPS_PROXY} --build-arg HTTP_PROXY=${HTTP_PROXY} --secret id=gitee_token,src=${GITEE_TOKEN_FILE} -f Dockerfile_ci -t ${RAGFLOW_IMAGE} .
) 9>"${BUILD_LOCK_FILE}"
rm -f "${GITEE_TOKEN_FILE}"
@@ -1015,7 +1015,7 @@ jobs:
flock -w 10800 9 || { echo "Timed out waiting for the shared Docker build slot" >&2; exit 1; }
echo "Acquired Docker build slot for ${DOC_ENGINE}/${API_PROXY_SCHEME}"
##sudo docker pull ubuntu:24.04
sudo DOCKER_BUILDKIT=1 docker build --build-arg NEED_MIRROR=1 --build-arg HTTPS_PROXY=${HTTPS_PROXY} --build-arg HTTP_PROXY=${HTTP_PROXY} --secret id=gitee_token,src=${GITEE_TOKEN_FILE} -f Dockerfile -t ${RAGFLOW_IMAGE} .
sudo DOCKER_BUILDKIT=1 docker build --build-arg NEED_MIRROR=1 --build-arg HTTPS_PROXY=${HTTPS_PROXY} --build-arg HTTP_PROXY=${HTTP_PROXY} --secret id=gitee_token,src=${GITEE_TOKEN_FILE} -f Dockerfile_ci -t ${RAGFLOW_IMAGE} .
) 9>"${BUILD_LOCK_FILE}"
rm -f "${GITEE_TOKEN_FILE}"