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