-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
53 lines (35 loc) · 1.06 KB
/
Dockerfile
File metadata and controls
53 lines (35 loc) · 1.06 KB
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
ARG BASE_IMAGE=debian:13.2-slim@sha256:4bcb9db66237237d03b55b969271728dd3d955eaaa254b9db8a3db94550b1885
# hadolint ignore=DL3006
FROM ${BASE_IMAGE}
ENV REFRESHED_AT=2026-01-05
LABEL name="senzing/dockerhub-util" \
maintainer="support@senzing.com" \
version="1.2.8"
HEALTHCHECK CMD ["/app/healthcheck.sh"]
# Run as "root" for system installation.
USER root
# Install packages via apt.
RUN apt-get update \
&& apt-get -y install --no-install-recommends \
python3-dev \
python3-pip \
python3-venv \
&& rm -rf /var/lib/apt/lists/*
# Create and activate virtual environment.
RUN python3 -m venv /app/venv
ENV PATH="/app/venv/bin:$PATH"
# Install packages via PIP.
COPY requirements.txt /tmp
RUN pip3 install --no-cache-dir --upgrade pip \
&& pip3 install --no-cache-dir -r /tmp/requirements.txt \
&& rm /tmp/requirements.txt
# Copy files from repository.
COPY ./rootfs /
COPY ./dockerhub-util.py /app/
# Make non-root container.
USER 1001
# Runtime execution.
ENV SENZING_DOCKER_LAUNCHED=true
WORKDIR /app
ENTRYPOINT ["/app/dockerhub-util.py"]
CMD ["--help"]