-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
50 lines (36 loc) · 961 Bytes
/
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
ARG BASE_IMAGE=senzing/senzingapi-runtime
FROM ${BASE_IMAGE}
ENV REFRESHED_AT=2022-12-21
LABEL Name="senzing/code-snippets" \
Maintainer="support@senzing.com" \
Version="0.0.1"
# Run as "root" for system installation.
USER root
# Install packages via apt.
RUN apt-get update \
&& apt-get -y install \
vim \
nano \
curl \
less \
python3 \
ipython3 \
python3-pip \
python3-virtualenv \
python3-venv \
&& rm -rf /var/lib/apt/lists/*
## Copy files from repository.
COPY ./Python/ /code-snippets/Python
COPY ./Resources/ /code-snippets/Resources
COPY ./rootfs /
HEALTHCHECK CMD ["/app/healthcheck.sh"]
# Make non-root container.
USER 1001
# Runtime environment variables.
ENV LD_LIBRARY_PATH=/opt/senzing/g2/lib:/opt/senzing/g2/lib/debian
ENV PATH=${PATH}:/opt/senzing/g2/python
ENV PYTHONPATH=/opt/senzing/g2/sdk/python
ENV PYTHONUNBUFFERED=1
ENV SENZING_DOCKER_LAUNCHED=true
WORKDIR /code-snippets
ENTRYPOINT ["/bin/bash"]