From 5433233dcd88b0f21adab650e41c6899484ea5e5 Mon Sep 17 00:00:00 2001 From: LordMathis Date: Wed, 29 Nov 2023 22:24:22 +0100 Subject: [PATCH] Change Dockerfile --- Dockerfile | 8 +++++--- requirements.txt | 3 +++ 2 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 requirements.txt diff --git a/Dockerfile b/Dockerfile index 30590d3..17db27a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,5 @@ -FROM ghcr.io/mlflow/mlflow:v2.7.0 - -RUN pip install psycopg2-binary boto3 \ No newline at end of file +FROM python:3.10-slim +COPY requirements.txt . +RUN pip install -r requirements.txt +EXPOSE 5000 +ENTRYPOINT ["mlflow", "server"] \ No newline at end of file diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..f7326d7 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,3 @@ +mlflow==2.7.0 +psycopg2-binary==2.9.9 +boto3==1.33.3 \ No newline at end of file