diff --git a/frontend/src/app/layout.tsx b/frontend/src/app/layout.tsx index 15895c2..d0b6fae 100644 --- a/frontend/src/app/layout.tsx +++ b/frontend/src/app/layout.tsx @@ -15,6 +15,8 @@ export const metadata: Metadata = { }, }; +const config = { ENDPOINT: process.env.API_URL ?? 'http://localhost:5000' }; + export default async function RootLayout({ children, }: Readonly<{ @@ -27,7 +29,7 @@ export default async function RootLayout({ - + {children} diff --git a/services/ml/Dockerfile b/services/ml/Dockerfile index 5e18657..0b9a799 100644 --- a/services/ml/Dockerfile +++ b/services/ml/Dockerfile @@ -41,4 +41,4 @@ ENV PYTHONUNBUFFERED=1 \ PYTHONDONTWRITEBYTECODE=1 # Run the application -CMD ["python", "-m", "app.server"] +CMD exec uvicorn app.server:app --host 0.0.0.0 --port ${PORT:-8000}