copilot: docker optimize.
Some checks failed
Build and Push Docker Image / buildx (push) Has been cancelled

This commit is contained in:
2025-11-11 16:00:24 +08:00
parent 17bbbe7fbc
commit 7bc3e10b52
7 changed files with 40 additions and 29 deletions

View File

@@ -3,7 +3,7 @@ const { DB_PATH } = require('./config');
const fs = require('fs');
const path = require('path');
// Ensure the directory exists
// Ensure the directory exists with proper permissions
const dbDir = path.dirname(DB_PATH);
if (!fs.existsSync(dbDir)) {
try {