🚧 WIP
This commit is contained in:
+2
-1
@@ -2,7 +2,8 @@ FROM python:3.12-slim
|
||||
|
||||
ENV PYTHONDONTWRITEBYTECODE=1 \
|
||||
PYTHONUNBUFFERED=1 \
|
||||
CONFIG_PATH=/app/config/config.json
|
||||
CONFIG_PATH=/app/config/config.json \
|
||||
ROOT_PATH=""
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
|
||||
+1
-1
@@ -67,7 +67,7 @@ class AppConfig(BaseModel):
|
||||
return self
|
||||
|
||||
|
||||
app = FastAPI(title="Bo hemma-avi")
|
||||
app = FastAPI(root_path=os.getenv("ROOT_PATH", ""), title="Bo hemma-avi")
|
||||
app.mount("/static", StaticFiles(directory="app/static"), name="static")
|
||||
templates = Jinja2Templates(directory="app/templates")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user