From d970a9c06ab6738645c91a80d1c41a236e9c9385 Mon Sep 17 00:00:00 2001 From: sinohqb Date: Mon, 20 Jul 2026 15:50:29 +0800 Subject: [PATCH] fix(deploy): init_db before alembic to create base tables --- deploy/volcengine-102/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/volcengine-102/Dockerfile b/deploy/volcengine-102/Dockerfile index 5c46e0a..0834dbe 100644 --- a/deploy/volcengine-102/Dockerfile +++ b/deploy/volcengine-102/Dockerfile @@ -44,4 +44,4 @@ RUN mkdir -p ./data/scenarios ./data/reports EXPOSE 8000 HEALTHCHECK --interval=30s --timeout=5s --retries=3 \ CMD curl -f http://localhost:8000/api/health || exit 1 -CMD ["sh", "-c", "alembic upgrade head && agenteval server start --host 0.0.0.0 --port 8000"] +CMD ["sh", "-c", "python -c 'from agenteval.storage.db import init_db; init_db()' && alembic upgrade head && agenteval server start --host 0.0.0.0 --port 8000"]