forked from mlflow/mlflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
26 lines (21 loc) · 815 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM python:3.7
WORKDIR /app
ADD . /app
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
# install prequired modules to support install of mlflow and related components
apt-get install -y default-libmysqlclient-dev build-essential curl openjdk-11-jre-headless \
# cmake and protobuf-compiler required for onnx install
cmake protobuf-compiler && \
# install required python packages
pip install -r requirements/dev-requirements.txt --no-cache-dir && \
# install mlflow in editable form
pip install --no-cache-dir -e .
# Build MLflow UI
RUN curl -sL https://deb.nodesource.com/setup_16.x | bash - && \
apt-get update && apt-get install -y nodejs && \
npm install --global yarn && \
cd mlflow/server/js && \
yarn install && \
yarn build
CMD ["bash"]