mirror of
https://github.com/hanzo-ml/kserve.git
synced 2026-10-30 20:53:49 +00:00
* Update aif example chore: Update aif explainer example. - Bump KServer to 0.13.0, it will bring some library updates, plus, it fixes a few security alerts in this example. - update the scikit-learn package name Signed-off-by: Spolti <[email protected]> * move the local instructions to the README Signed-off-by: Spolti <[email protected]> * empty commit Signed-off-by: Spolti <[email protected]> --------- Signed-off-by: Spolti <[email protected]>
21 lines
524 B
Docker
21 lines
524 B
Docker
# Use the official lightweight Python image.
|
|
# https://hub.docker.com/_/python
|
|
FROM python:3.10-slim
|
|
|
|
ENV APP_HOME /app
|
|
WORKDIR $APP_HOME
|
|
|
|
# Install production dependencies.
|
|
COPY requirements.txt ./
|
|
RUN pip install --no-cache-dir -r ./requirements.txt
|
|
|
|
# Copy local code to container image
|
|
COPY model.py ./
|
|
|
|
# Copy german-credit data
|
|
COPY german.data /usr/local/lib/python3.10/site-packages/aif360/data/raw/german/
|
|
COPY german.doc /usr/local/lib/python3.10/site-packages/aif360/data/raw/german/
|
|
|
|
CMD ["python", "model.py"]
|
|
|