fix
This commit is contained in:
@ -1,5 +1,4 @@
|
|||||||
FROM python:3.10.11-alpine3.17
|
FROM python:3.10.11-slim
|
||||||
RUN apk update && apk add gcc
|
|
||||||
ENV LANG="C.UTF-8" \
|
ENV LANG="C.UTF-8" \
|
||||||
TZ="Asia/Shanghai" \
|
TZ="Asia/Shanghai" \
|
||||||
PS1="\u@\h:\w \$ " \
|
PS1="\u@\h:\w \$ " \
|
||||||
|
@ -1,6 +1,12 @@
|
|||||||
|
import sys
|
||||||
|
from pathlib import Path
|
||||||
|
|
||||||
import uvicorn as uvicorn
|
import uvicorn as uvicorn
|
||||||
from fastapi import FastAPI
|
from fastapi import FastAPI
|
||||||
|
|
||||||
|
# 将项目根目录添加到模块搜索路径
|
||||||
|
sys.path.append(str(Path(__file__).parent.absolute()))
|
||||||
|
|
||||||
from app.api.apiv1 import api_router
|
from app.api.apiv1 import api_router
|
||||||
from app.core import settings, ModuleManager, PluginManager
|
from app.core import settings, ModuleManager, PluginManager
|
||||||
from app.db.init import init_db, update_db
|
from app.db.init import init_db, update_db
|
||||||
|
Reference in New Issue
Block a user