-
Notifications
You must be signed in to change notification settings - Fork 824
/
Dockerfile
30 lines (24 loc) · 1.05 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
FROM registry.access.redhat.com/ubi8/python-38
LABEL name="Seldon Request Logger" \
vendor="Seldon Technologies" \
version="1.8.0" \
release="1" \
summary="The payload logger for Seldon Core" \
description="The Seldon Payload Logger allows request and response payloads from a Seldon Core inference graph to be processed and sent to an ELK endpoint"
COPY requirements.txt requirements.txt
RUN pip install -r requirements.txt
RUN pip install gunicorn
# 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
USER root
RUN mv ./licenses /licenses
RUN yum -y update-minimal --security --sec-severity=Important --sec-severity=Critical
# CVE https://github.com/SeldonIO/seldon-core/issues/2960
RUN yum remove -y nodejs httpd
USER default
COPY app app
EXPOSE 8080
ENTRYPOINT ["python"]
CMD ["app/default_logger.py"]