forked from shorthills-ai/mlflow
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
26 lines (21 loc) · 923 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.8-bullseye
WORKDIR /home/mlflow
RUN curl -sL https://deb.nodesource.com/setup_16.x | bash - \
&& apt-get install -y --no-install-recommends nodejs \
# java
openjdk-11-jre-headless \
# yarn
&& npm install --global yarn \
# protoc
&& wget https://github.com/protocolbuffers/protobuf/releases/download/v3.19.4/protoc-3.19.4-linux-x86_64.zip -O /tmp/protoc.zip \
&& mkdir -p /home/mlflow/.local \
&& unzip /tmp/protoc.zip -d /home/mlflow/.local/protoc \
&& rm /tmp/protoc.zip \
&& chmod -R +x /home/mlflow/.local/protoc \
# adding an unprivileged user
&& groupadd --gid 10001 mlflow \
&& useradd --uid 10001 --gid mlflow --shell /bin/bash --create-home mlflow
ENV PATH="/home/mlflow/.local/protoc/bin:$PATH"
# the "mlflow" user created above, represented numerically for optimal compatibility with Kubernetes security policies
USER 10001
CMD ["bash"]