新增dify接口;完善F10请求地址
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
FROM amazoncorretto:21-alpine
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY build/install/f10/ /app/
|
||||
|
||||
EXPOSE 8096
|
||||
|
||||
CMD ["./bin/f10"]
|
||||
@@ -0,0 +1,50 @@
|
||||
$ErrorActionPreference = "Stop"
|
||||
|
||||
$VERSION = "1.0"
|
||||
|
||||
$IMAGE = "docker.bbitcn.net/bbit_f10/trace"
|
||||
|
||||
Write-Host "Gradle installDist"
|
||||
Write-Host "==============================="
|
||||
|
||||
.\gradlew.bat clean installDist
|
||||
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
throw "installDist failed"
|
||||
}
|
||||
|
||||
Write-Host "Docker Build"
|
||||
Write-Host "==============================="
|
||||
|
||||
docker build ` -t "${IMAGE}:${VERSION}"`
|
||||
-t "${IMAGE}:latest" `
|
||||
.
|
||||
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
throw "docker build failed"
|
||||
}
|
||||
|
||||
Write-Host "Push Version"
|
||||
Write-Host "==============================="
|
||||
|
||||
docker push "${IMAGE}:${VERSION}"
|
||||
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
throw "push version failed"
|
||||
}
|
||||
|
||||
Write-Host "Push Latest"
|
||||
Write-Host "==============================="
|
||||
|
||||
docker push "${IMAGE}:latest"
|
||||
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
throw "push latest failed"
|
||||
}
|
||||
|
||||
Write-Host "SUCCESS"
|
||||
Write-Host "==============================="
|
||||
Write-Host ""
|
||||
Write-Host "Published:"
|
||||
Write-Host " ${IMAGE}:${VERSION}"
|
||||
Write-Host " ${IMAGE}:latest"
|
||||
@@ -3,10 +3,9 @@ ktor:
|
||||
modules:
|
||||
- com.bbitcn.ApplicationKt.module
|
||||
deployment:
|
||||
port: 8081
|
||||
port: 8096
|
||||
|
||||
traceability:
|
||||
# 访问主服务的地址
|
||||
# core-base-url: "http://127.0.0.1:8089" # 开发
|
||||
core-base-url: "https://171.212.101.200:8090/api" # 生产 用IP
|
||||
# core-base-url: "https://ai.ronsunny.cn:8090/api" # 生产 用域名
|
||||
core-base-url: "https://ai.bbitcn.net/api" # 生产
|
||||
|
||||
Reference in New Issue
Block a user