-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
51 lines (34 loc) · 987 Bytes
/
Dockerfile
File metadata and controls
51 lines (34 loc) · 987 Bytes
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
ARG BASE_IMAGE=debian:13.2-slim@sha256:4bcb9db66237237d03b55b969271728dd3d955eaaa254b9db8a3db94550b1885
FROM ${BASE_IMAGE}
ENV REFRESHED_AT=2026-01-05
LABEL Name="senzing/template-docker" \
Maintainer="support@senzing.com" \
Version="1.3.6"
HEALTHCHECK CMD ["/app/healthcheck.sh"]
# Run as "root" for system installation.
USER root
# Install packages via apt.
RUN apt-get update \
&& apt-get -y --no-install-recommends install \
less \
python3 \
python3-pip \
python3-venv \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Activate virtual environment.
RUN python3 -m venv /app/venv
ENV PATH="/app/venv/bin:$PATH"
# Install packages via PIP.
COPY pyproject.toml ./
RUN python3 -m pip install --upgrade pip
# example, skipping in template
# as there is nothing to build
# && python3 -m pip install .
# Copy files from repository.
COPY ./rootfs /
# Make non-root container.
USER 1001
# Runtime execution.
WORKDIR /app
CMD ["/app/sleep-infinity.sh"]