-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
47 lines (31 loc) · 968 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
ARG BASE_IMAGE=debian:11.9-slim@sha256:acc5810124f0929ab44fc7913c0ad936b074cbd3eadf094ac120190862ba36c4
# hadolint ignore=DL3006
FROM ${BASE_IMAGE}
ENV REFRESHED_AT=2024-06-24
LABEL name="senzing/dockterhub-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 \
&& rm -rf /var/lib/apt/lists/*
# 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"]