forked from mlflow/mlflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
27 lines (24 loc) · 1.18 KB
/
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
27
FROM condaforge/miniforge3
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 \
# cmake and protobuf-compiler required for onnx install
cmake protobuf-compiler && \
# Without `charset-normalizer=2.0.12`, `conda install` below would fail with:
# CondaHTTPError: HTTP 404 NOT FOUND for url <https://conda.anaconda.org/conda-forge/noarch/charset-normalizer-2.0.11-pyhd8ed1ab_0.conda>
conda install python=3.7 charset-normalizer=2.0.12 && \
# 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 . && \
# mkdir required to support install openjdk-11-jre-headless
mkdir -p /usr/share/man/man1 && apt-get install -y openjdk-11-jre-headless && \
# install npm for node.js support
curl -sL https://deb.nodesource.com/setup_14.x | bash - && \
apt-get update && apt-get install -y nodejs && \
cd mlflow/server/js && \
npm install && \
npm run build