fix(ml): execute MLflow en non-root et installe uniquement des wheels

This commit is contained in:
Valentin
2026-09-21 15:41:02 +02:00
parent 33aeea835b
commit 5cc99178c2
+5 -1
View File
@@ -1,3 +1,7 @@
FROM python:3.12-slim
RUN pip install --no-cache-dir mlflow==3.16.1 psycopg2-binary
RUN pip install --no-cache-dir --only-binary :all: mlflow==3.16.1 psycopg2-binary==2.9.10
RUN useradd --create-home --uid 1000 mlflow \
&& mkdir /mlartifacts \
&& chown mlflow /mlartifacts
USER mlflow
EXPOSE 5000