fix: run as python -m app.main to fix ModuleNotFoundError
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -13,4 +13,4 @@ COPY app/ ./app/
|
|||||||
|
|
||||||
EXPOSE 6677
|
EXPOSE 6677
|
||||||
|
|
||||||
CMD ["python", "app/main.py"]
|
CMD ["python", "-m", "app.main"]
|
||||||
|
|||||||
@@ -199,4 +199,4 @@ app.mount("/", StaticFiles(directory=str(static_dir), html=True), name="static")
|
|||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
import uvicorn
|
import uvicorn
|
||||||
uvicorn.run(app, host="0.0.0.0", port=6677, log_level="info")
|
uvicorn.run("app.main:app", host="0.0.0.0", port=6677, log_level="info")
|
||||||
|
|||||||
Reference in New Issue
Block a user