fix: entrypoint workdir and static path
This commit is contained in:
+3
-2
@@ -342,8 +342,9 @@ def api_check(model_id: str):
|
||||
|
||||
@app.get("/", response_class=HTMLResponse)
|
||||
def index():
|
||||
with open("/app/static/index.html") as f:
|
||||
with open("/app/app/static/index.html") as f:
|
||||
return f.read()
|
||||
|
||||
|
||||
app.mount("/static", StaticFiles(directory="/app/static"), name="static")
|
||||
app.mount("/static", StaticFiles(directory="/app/app/static"), name="static")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user