forked from SeldonIO/MLServer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Adrian Gonzalez-Martin
committed
Sep 8, 2020
1 parent
3d8df90
commit 0ab6407
Showing
3 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
__pycache__ | ||
*.pyc | ||
*.pyo | ||
*.pyd | ||
.Python | ||
env | ||
pip-log.txt | ||
pip-delete-this-directory.txt | ||
.tox | ||
.coverage | ||
.coverage.* | ||
.cache | ||
nosetests.xml | ||
coverage.xml | ||
*,cover | ||
*.log | ||
.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
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 cache, which we don't want, but I can't see any | ||
# way to install only deps from setup.py | ||
COPY ./mlserver/ ./mlserver/ | ||
RUN pip install .[all] | ||
|
||
COPY ./mlserver/ ./mlserver/ | ||
|
||
CMD mlserver start $MODELS_DIR | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters