This repository has been archived by the owner on Jul 21, 2023. It is now read-only.
forked from mlflow/mlflow
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
61 lines (53 loc) · 2.1 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#FROM continuumio/miniconda3
#
#WORKDIR /app
#
#ADD . /app
#
#RUN apt-get update && \
# # install prequired modules to support install of mlflow and related components
# apt-get install -y nodejs npm default-libmysqlclient-dev build-essential curl postgresql-server-dev-all \
# # cmake and protobuf-compiler required for onnx install
# cmake protobuf-compiler yarn && \
# # install required python packages
# cd requirements && \
# pip install -r dev-requirements.txt --no-cache-dir && \
# # pip install -r test-requirements.txt --no-cache-dir && \
# pip install psycopg2 && \
# cd .. && \
# # 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_10.x | bash - && \
# cd mlflow/server/js && \
# npm install --legacy-peer-deps && \
# npm run build
FROM python:3.8
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 psycopg2-binary && \
pip install -r requirements/dev-requirements.txt --no-cache-dir && \
# install mlflow in editable form
pip install --no-cache-dir -e .
# Install IH telemetry
ARG PYPI_INDEX
RUN pip install ih-telemetry --extra-index-url $PYPI_INDEX
# 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
ENV GUNICORN_CONF_LOCATION=/opt/mlflow/gunicorn.conf.py
COPY mlflow/server/gunicorn.conf.py $GUNICORN_CONF_LOCATION
COPY script/start.sh /opt/mlflow/start.sh