-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
64 lines (44 loc) · 1.54 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
ARG BASE_IMAGE=debian:12-slim
FROM ${BASE_IMAGE}
# Create the build image.
ARG SENZING_ACCEPT_EULA="I_ACCEPT_THE_SENZING_EULA"
ARG SENZING_APT_INSTALL_PACKAGE="senzingsdk-runtime"
ARG SENZING_APT_REPOSITORY_NAME="senzingrepo_2.0.1-1_all.deb"
ARG SENZING_APT_REPOSITORY_URL="https://senzing-production-apt.s3.amazonaws.com"
ENV REFRESHED_AT=2024-12-06
ENV SENZING_ACCEPT_EULA=${SENZING_ACCEPT_EULA} \
SENZING_APT_INSTALL_PACKAGE=${SENZING_APT_INSTALL_PACKAGE} \
SENZING_APT_REPOSITORY_NAME=${SENZING_APT_REPOSITORY_NAME} \
SENZING_APT_REPOSITORY_URL=${SENZING_APT_REPOSITORY_URL}
LABEL Name="senzing/senzingsdk-runtime" \
Maintainer="[email protected]" \
Version="4.0.0-beta" \
SenzingSDK="4.0.0-beta"
# Run as "root" for system installation.
USER root
# Eliminate warning messages.
ENV TERM=xterm
# Install packages via apt.
RUN apt-get update \
&& apt-get -y install \
wget
# Install Senzing repository index.
RUN wget -qO \
/${SENZING_APT_REPOSITORY_NAME} \
${SENZING_APT_REPOSITORY_URL}/${SENZING_APT_REPOSITORY_NAME} > /dev/null \
&& apt-get -y -qq install \
/${SENZING_APT_REPOSITORY_NAME} \
&& apt-get update \
&& rm /${SENZING_APT_REPOSITORY_NAME}
# Install Senzing package.
RUN apt-get -y install \
libpq5 \
${SENZING_APT_INSTALL_PACKAGE} \
jq \
&& apt-get clean
HEALTHCHECK CMD apt list --installed | grep senzingsdk-runtime
# Set environment variables for root.
ENV LD_LIBRARY_PATH=/opt/senzing/er/lib
# Runtime execution.
WORKDIR /
CMD ["/bin/bash"]