Skip to content

Commit

Permalink
Fix ml dockerfile env var
Browse files Browse the repository at this point in the history
  • Loading branch information
jamakase committed Sep 10, 2024
1 parent 0a96516 commit 4d100c0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion frontend/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<{
Expand All @@ -27,7 +29,7 @@ export default async function RootLayout({
<link rel="icon" href="/favicon.ico" sizes="any" />
</head>
<body className={inter.className}>
<ConfigProvider configData={{ ENDPOINT: process.env.API_URL ?? 'http://localhost:5000' }}>
<ConfigProvider configData={config}>
{children}
</ConfigProvider>
</body>
Expand Down
2 changes: 1 addition & 1 deletion services/ml/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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}

0 comments on commit 4d100c0

Please sign in to comment.