forked from SeldonIO/MLServer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (23 loc) · 774 Bytes
/
Copy pathDockerfile
File metadata and controls
32 lines (23 loc) · 774 Bytes
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
FROM python:3.7-slim
ENV MODELS_DIR /mnt/models
RUN apt-get update && \
apt-get -y --no-install-recommends install \
libgomp1
WORKDIR /workspace
COPY setup.py .
# TODO: This busts the Docker cache before installing the rest of packages,
# which we don't want, but I can't see any way to install only deps from
# setup.py
COPY README.md .
COPY ./mlserver/ ./mlserver/
RUN pip install .
COPY ./runtimes/sklearn ./runtimes/sklearn
RUN pip install ./runtimes/sklearn
COPY ./runtimes/xgboost ./runtimes/xgboost
RUN pip install ./runtimes/xgboost
COPY ./runtimes/mllib ./runtimes/mllib
RUN pip install ./runtimes/mllib
COPY ./runtimes/lightgbm ./runtimes/lightgbm
RUN pip install ./runtimes/lightgbm
COPY ./licenses/license.txt .
CMD mlserver start $MODELS_DIR