Files
Filippe SpoltiandGitHub 97e8c2413c Update aif example (#3765)
* 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]>
2024-08-11 12:26:10 -04:00

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"]