Optimize Dockerfile cache, binary size, SQLite WAL, and remove unused python package
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 33s

This commit is contained in:
AI Assistant
2026-03-12 14:20:56 +09:00
parent 0ad5d4ddbe
commit 4cdf1066e6
3 changed files with 9 additions and 7 deletions

View File

@@ -39,6 +39,9 @@ func InitDB(dbPath string) {
log.Fatal("Failed to connect to database:", err)
}
// SQLite 동시성 최적화를 위해 WAL(Write-Ahead Logging) 모드를 활성화
DB.Exec("PRAGMA journal_mode=WAL;")
err = DB.AutoMigrate(&MediaHistory{})
if err != nil {
log.Println("Database migration error:", err)