fix: enable KCEF support in Docker and fix init race condition

Add KCEF build args to docker-compose.yml so the image is built with
Xvfb and CEF binaries, enabling WebView-based sources like MangaFire.

Remove redundant kcefDir.createDirectories() in ServerSetup which caused
FileAlreadyExistsException when KCEF.init tried to create the same dir.
This commit is contained in:
achmad
2026-05-10 13:05:38 +07:00
parent ad5a575732
commit e50a62d915
2 changed files with 6 additions and 2 deletions
+6 -1
View File
@@ -1,7 +1,12 @@
---
services:
suwayomi:
build: .
build:
context: .
args:
TACHIDESK_KCEF: "y"
TARGETPLATFORM: linux/amd64
TACHIDESK_KCEF_RELEASE_URL: https://api.github.com/repos/DatL4g/KCEF/releases/latest
platform: linux/amd64
image: registry.achmad.dev/suwayomi-server:latest
# user: 1000:1000
@@ -548,7 +548,6 @@ fun applicationSetup() {
)
val kcefDir = Path(applicationDirs.dataRoot) / "bin/kcef"
kcefDir.createDirectories()
installDir(kcefDir.toFile())
},
onError = { it?.printStackTrace() },