mirror of
https://github.com/Tencent/WeKnora.git
synced 2025-11-25 03:15:00 +08:00
chore: 调整脚本后台语法,改执行方式并设换行符
This commit is contained in:
1
.gitattributes
vendored
Normal file
1
.gitattributes
vendored
Normal file
@@ -0,0 +1 @@
|
||||
*.sh text eol=lf
|
||||
@@ -56,7 +56,7 @@ COPY services/docreader/scripts/ /app/scripts/
|
||||
RUN ls -la /root/.paddlex/official_models
|
||||
|
||||
# 生成 protobuf 代码
|
||||
RUN chmod +x /app/scripts/generate_proto.sh && /app/scripts/generate_proto.sh
|
||||
RUN chmod +x /app/scripts/generate_proto.sh && bash /app/scripts/generate_proto.sh
|
||||
|
||||
# 运行阶段
|
||||
FROM --platform=${PLATFORM} python:3.9-slim AS runner
|
||||
|
||||
@@ -140,7 +140,7 @@ start_ollama() {
|
||||
else
|
||||
log_info "启动Ollama服务..."
|
||||
export OLLAMA_HOST=0.0.0.0:11435
|
||||
ollama serve & > /dev/null 2>&1
|
||||
ollama serve > /dev/null 2>&1 &
|
||||
|
||||
# 等待服务启动
|
||||
MAX_RETRIES=30
|
||||
|
||||
Reference in New Issue
Block a user