-
Notifications
You must be signed in to change notification settings - Fork 824
/
Dockerfile
36 lines (28 loc) · 1.22 KB
/
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
27
28
29
30
31
32
33
34
35
36
FROM registry.access.redhat.com/ubi8/python-36
LABEL name="Seldon Alibi Wrapper" \
vendor="Seldon Technologies" \
version="1.8.0" \
release="1" \
summary="Alibi Explainer Wrapper for Seldon Core" \
description="Allows Seldon Core inference models to run with a black box model explanation model from the Alibi:Explain project"
USER root
RUN yum -y update-minimal --security --sec-severity=Important --sec-severity=Critical
RUN mkdir /licenses && chown default /licenses
# CVE https://github.com/SeldonIO/seldon-core/issues/2960
RUN yum remove -y nodejs httpd
USER default
RUN pip install \
--upgrade pip \
--upgrade setuptools \
--upgrade wheel
COPY setup.py setup.py
COPY alibiexplainer alibiexplainer
COPY README.md README.md
# Required for https://github.com/slundberg/shap/issues/1633
RUN pip install numpy==1.19.04 . --no-binary protobuf
# Add licences
RUN pip install pip-licenses
RUN mkdir ./licenses && pip-licenses --from=mixed --format=csv --output-file=./licenses/license_info.csv && \
pip-licenses --from=mixed --format=plain-vertical --with-license-file --no-license-path --output-file=./licenses/license.txt
RUN cp ./licenses/* /licenses
ENTRYPOINT ["python", "-m", "alibiexplainer"]